From 1933ec709f34543bd9518adddac4856ba4bea074 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 17 Feb 2022 11:50:04 +0100 Subject: [PATCH] FIX: Proper fix for process_data taking a variable number of arguments --- platypush/backend/sensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/sensor/__init__.py b/platypush/backend/sensor/__init__.py index 31cb35af..556a5cf9 100644 --- a/platypush/backend/sensor/__init__.py +++ b/platypush/backend/sensor/__init__.py @@ -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__))