diff options
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): |