Skip to content

Commit

Permalink
Closes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
tschamm committed Jan 29, 2023
1 parent 99d9883 commit b1d85d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions custom_components/bosch_shc/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
for light in session.device_helper.ledvance_lights:
await async_migrate_to_new_unique_id(hass, Platform.LIGHT, device=light)
entities.append(
parent_id=session.information.unique_id,
entry_id=config_entry.entry_id,
LightSwitch(
device=light,
parent_id=session.information.unique_id,
entry_id=config_entry.entry_id,
)
)

if entities:
Expand Down

0 comments on commit b1d85d8

Please sign in to comment.