adding more dimmer components (#19843)

* adding more dimmer components

* updated library version

* updated requirements_test_all
This commit is contained in:
sander76 2019-01-07 17:32:28 +01:00 committed by Charles Garwood
parent dd75c49796
commit 0af635e8d7
4 changed files with 8 additions and 5 deletions

View file

@ -29,14 +29,17 @@ async def async_setup_platform(
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the HomematicIP Cloud lights from a config entry."""
from homematicip.aio.device import AsyncBrandSwitchMeasuring, AsyncDimmer
from homematicip.aio.device import AsyncBrandSwitchMeasuring, AsyncDimmer,\
AsyncPluggableDimmer, AsyncBrandDimmer, AsyncFullFlushDimmer
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
devices = []
for device in home.devices:
if isinstance(device, AsyncBrandSwitchMeasuring):
devices.append(HomematicipLightMeasuring(home, device))
elif isinstance(device, AsyncDimmer):
elif isinstance(device,
(AsyncDimmer, AsyncPluggableDimmer,
AsyncBrandDimmer, AsyncFullFlushDimmer)):
devices.append(HomematicipDimmer(home, device))
if devices: