From 47d0c42bf4eb9b5053711babf2f469a1c5c0eefa Mon Sep 17 00:00:00 2001 From: Thomas Schamm Date: Sat, 25 Dec 2021 20:39:15 +0100 Subject: [PATCH] Add light switch sensors --- custom_components/bosch_shc/sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/bosch_shc/sensor.py b/custom_components/bosch_shc/sensor.py index 2c1d211..0c48860 100644 --- a/custom_components/bosch_shc/sensor.py +++ b/custom_components/bosch_shc/sensor.py @@ -102,7 +102,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities): ) ) - for sensor in session.device_helper.smart_plugs: + for sensor in ( + session.device_helper.smart_plugs + session.device_helper.light_switches + ): entities.append( PowerSensor( device=sensor,