diff options
Diffstat (limited to '')
-rw-r--r-- | ParrotZik.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ParrotZik.py b/ParrotZik.py index 05e316e..08b7f30 100644 --- a/ParrotZik.py +++ b/ParrotZik.py @@ -39,7 +39,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 |