aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-14 18:26:04 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-14 18:26:04 +0200
commit68e3cde2b1d8eec9c823ce0969a6b6ee314dba38 (patch)
treeff0411aa27a9fee96353961baaee3061a28ad4ce
parente3d2cb770e6e03513b6bf6ece70202c065279950 (diff)
downloadpyParrotZikTCP-68e3cde2b1d8eec9c823ce0969a6b6ee314dba38.tar.xz
pyParrotZikTCP-68e3cde2b1d8eec9c823ce0969a6b6ee314dba38.zip
Fix battery.
Diffstat (limited to '')
-rw-r--r--ParrotZik.py2
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):