From 45e5ca47e7f1b1330f1f0b4c1ac7b8d84d815b2b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 2 Apr 2023 15:38:49 +0200 Subject: [PATCH] Fallback for sensor._has_changes --- platypush/plugins/sensor/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platypush/plugins/sensor/__init__.py b/platypush/plugins/sensor/__init__.py index 4c5c710d8..4a126ef11 100644 --- a/platypush/plugins/sensor/__init__.py +++ b/platypush/plugins/sensor/__init__.py @@ -174,10 +174,7 @@ class SensorPlugin(RunnablePlugin, SensorEntityManager, ABC): for i, value in enumerate(new_data) ) - raise AssertionError( - f'Mismatching types for old_data and new_data: "{type(old_data)}" ' - f'and "{type(new_data)}"' - ) + return old_data != new_data def _process_scalar_threshold_events( self,