Skip to content

Commit

Permalink
Merge 3935457 into c545d2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sander76 committed Dec 15, 2018
2 parents c545d2e + 3935457 commit 6faf4fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions homeassistant/components/switch/homematicip_cloud.py
Expand Up @@ -29,7 +29,11 @@ async def async_setup_platform(
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the HomematicIP switch from a config entry."""
from homematicip.device import (
PlugableSwitch, PlugableSwitchMeasuring, BrandSwitchMeasuring)
PlugableSwitch,
PlugableSwitchMeasuring,
BrandSwitchMeasuring,
FullFlushSwitchMeasuring,
)

home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
devices = []
Expand All @@ -39,7 +43,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
# This device is implemented in the light platform and will
# not be added in the switch platform
pass
elif isinstance(device, PlugableSwitchMeasuring):
elif isinstance(device, (PlugableSwitchMeasuring,
FullFlushSwitchMeasuring)):
devices.append(HomematicipSwitchMeasuring(home, device))
elif isinstance(device, PlugableSwitch):
devices.append(HomematicipSwitch(home, device))
Expand Down

0 comments on commit 6faf4fa

Please sign in to comment.