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