forked from platypush/platypush
Don't iterate on data if data is None
This commit is contained in:
parent
6e93c03438
commit
5504048c22
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class SensorBackend(Backend):
|
|||
reload = True
|
||||
time.sleep(5)
|
||||
|
||||
if self.enabled_sensors:
|
||||
if self.enabled_sensors and data is not None:
|
||||
data = {
|
||||
sensor: data[sensor]
|
||||
for sensor, enabled in self.enabled_sensors.items()
|
||||
|
|
Loading…
Reference in a new issue