From 40aa852a578dcd54cc581921857590a11b7b497b Mon Sep 17 00:00:00 2001 From: Thomas Schamm Date: Mon, 27 Dec 2021 22:54:23 +0100 Subject: [PATCH] Fix missing power and energy sensors for light switches in bosch_shc (#62802) --- homeassistant/components/bosch_shc/sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/bosch_shc/sensor.py b/homeassistant/components/bosch_shc/sensor.py index 33d18ebbfd4..d62ab075167 100644 --- a/homeassistant/components/bosch_shc/sensor.py +++ b/homeassistant/components/bosch_shc/sensor.py @@ -103,7 +103,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,