Skip to content

Commit

Permalink
Add light switch sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
tschamm committed Dec 25, 2021
1 parent 586c6b9 commit 47d0c42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/bosch_shc/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 47d0c42

Please sign in to comment.