Skip to content

Commit

Permalink
Include fix to on/off switch
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 11, 2019
1 parent 6ac16c5 commit 56d2552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/homeconnect/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def get_entities():
entities = []
hc_api = hass.data[DOMAIN][config_entry.entry_id]
for device_dict in hc_api.devices:
entities += [HomeConnectPowerSwitch(device_dict["device"])]
entity_dicts = device_dict.get("entities", {}).get("switch", [])
entity_list = [HomeConnectProgramSwitch(**d) for d in entity_dicts]
entity_list += [HomeConnectPowerSwitch(device_dict["device"])]
device = device_dict["device"]
device.entities += entity_list
entities += entity_list
Expand Down

0 comments on commit 56d2552

Please sign in to comment.