diff --git a/platypush/plugins/sensor/__init__.py b/platypush/plugins/sensor/__init__.py index 83d730bc3..3bd38635b 100644 --- a/platypush/plugins/sensor/__init__.py +++ b/platypush/plugins/sensor/__init__.py @@ -333,7 +333,7 @@ class SensorPlugin(RunnablePlugin, SensorEntityManager, ABC): def publish_entities( self, entities: SensorDataType, *args, **kwargs ) -> Collection[Entity]: - entities_args = [entities] if isinstance(entities, Numeric) else entities + entities_args = [entities] if isinstance(entities, (int, float)) else entities return super().publish_entities(entities_args, *args, **kwargs) # type: ignore @abstractmethod