Fix missing power and energy sensors for light switches in bosch_shc (#62802)

pull/62890/head
Thomas Schamm 2021-12-27 22:54:23 +01:00 committed by GitHub
parent af3d52a3e0
commit 40aa852a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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,