mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix missing power and energy sensors for light switches in bosch_shc (#62802)
This commit is contained in:
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(
|
entities.append(
|
||||||
PowerSensor(
|
PowerSensor(
|
||||||
device=sensor,
|
device=sensor,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user