From c534adf31fbef3ca328680ea8ff8af35bb85b60e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 17 Jan 2022 16:39:40 +0100 Subject: [PATCH] varname typo fix --- 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 7d4042e656..eaae125447 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 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__)) def run(self):