forked from platypush/platypush
FIX: Proper fix for process_data taking a variable number of arguments
This commit is contained in:
parent
71cb73cf63
commit
1933ec709f
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class SensorBackend(Backend):
|
|||
if plugin and hasattr(plugin, 'close'):
|
||||
plugin.close()
|
||||
|
||||
def process_data(self, *, new_data, **_):
|
||||
def process_data(self, new_data, *_, **__):
|
||||
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__))
|
||||
|
||||
|
|
Loading…
Reference in a new issue