diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-14 18:26:04 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-14 18:26:04 +0200 |
commit | 68e3cde2b1d8eec9c823ce0969a6b6ee314dba38 (patch) | |
tree | ff0411aa27a9fee96353961baaee3061a28ad4ce | |
parent | e3d2cb770e6e03513b6bf6ece70202c065279950 (diff) | |
download | pyParrotZikTCP-68e3cde2b1d8eec9c823ce0969a6b6ee314dba38.tar.xz pyParrotZikTCP-68e3cde2b1d8eec9c823ce0969a6b6ee314dba38.zip |
Fix battery.
Diffstat (limited to '')
-rw-r--r-- | ParrotZik.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ParrotZik.py b/ParrotZik.py index 4f4ff07..6039952 100644 --- a/ParrotZik.py +++ b/ParrotZik.py @@ -161,7 +161,7 @@ class ParrotZikBase(object): def get_battery_level(self, field_name): data = self.api.get("/api/system/battery") - return data.answer.system.battery[field_name] + return int(data.answer.system.battery[field_name]) @property def friendly_name(self): |