diff options
Diffstat (limited to 'ParrotZik.py')
-rw-r--r-- | ParrotZik.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ParrotZik.py b/ParrotZik.py index 2746259..b7f5dd7 100644 --- a/ParrotZik.py +++ b/ParrotZik.py @@ -38,7 +38,8 @@ class ParrotZik(object): def getBatteryLevel(self): data = self.sendGetMessage("/api/system/battery/get") try: - self.BatteryLevel = data.answer.system.battery["level"] + if data.answer.system.battery["level"] <> '': + self.BatteryLevel = data.answer.system.battery["level"] except: pass |