From 3dab94c3469cb133e7f6983f1bddb4c0adeec63f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 23 Feb 2023 00:50:06 +0100 Subject: [PATCH] Added `StepsSensor` detection to `bluetooth`. --- platypush/plugins/bluetooth/ble/_mappers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/bluetooth/ble/_mappers.py b/platypush/plugins/bluetooth/ble/_mappers.py index ea6088db62..bad2504ec3 100644 --- a/platypush/plugins/bluetooth/ble/_mappers.py +++ b/platypush/plugins/bluetooth/ble/_mappers.py @@ -24,6 +24,7 @@ from platypush.entities.humidity import HumiditySensor from platypush.entities.illuminance import IlluminanceSensor from platypush.entities.motion import MotionSensor from platypush.entities.sensors import BinarySensor, NumericSensor, RawSensor +from platypush.entities.steps import StepsSensor from platypush.entities.temperature import TemperatureSensor @@ -79,6 +80,7 @@ _property_to_entity: Dict[str, Callable[[Any, Dict[str, Any]], Entity]] = { unit=conf.get('unit', 'W'), ), 'motion': lambda value, _: MotionSensor(value=value), + 'steps': lambda value, _: StepsSensor(value=value), 'temperature': lambda value, conf: TemperatureSensor( value=value, unit=conf.get('unit', 'C'),