forked from platypush/platypush
varname typo fix
This commit is contained in:
parent
0c423e3809
commit
c534adf31f
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class SensorBackend(Backend):
|
||||||
plugin.close()
|
plugin.close()
|
||||||
|
|
||||||
def process_data(self, data, new_data):
|
def process_data(self, data, new_data):
|
||||||
if new_data is not None and data not in ({}, []):
|
if new_data is not None and new_data not in ({}, []):
|
||||||
self.bus.post(SensorDataChangeEvent(data=new_data, source=self.plugin or self.__class__.__name__))
|
self.bus.post(SensorDataChangeEvent(data=new_data, source=self.plugin or self.__class__.__name__))
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Reference in a new issue