Fix missing power and energy sensors for light switches in bosch_shc (#62802)
parent
af3d52a3e0
commit
40aa852a57
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue