diff --git a/platypush/backend/sensor/__init__.py b/platypush/backend/sensor/__init__.py index 0cf5beb2f..7d4042e65 100644 --- a/platypush/backend/sensor/__init__.py +++ b/platypush/backend/sensor/__init__.py @@ -175,7 +175,7 @@ class SensorBackend(Backend): plugin.close() def process_data(self, data, new_data): - if new_data: + if new_data is not None and data not in ({}, []): self.bus.post(SensorDataChangeEvent(data=new_data, source=self.plugin or self.__class__.__name__)) def run(self):