Skip to content

Commit

Permalink
Bugfix for switch
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Jul 21, 2020
1 parent a13348f commit 01c1df1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/tahoma/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
controller = data.get("controller")

entities = [
TahomaSwitch(device, controller)
for device in data.get("devices")
if TAHOMA_TYPES[device.ui_class] == "switch"
TahomaSwitch(device, controller) for device in data.get("entities").get("switch")
]

async_add_entities(entities)
Expand Down

0 comments on commit 01c1df1

Please sign in to comment.