From 0af635e8d7b64117fc742c63a2ce3f847d3e529c Mon Sep 17 00:00:00 2001 From: sander76 Date: Mon, 7 Jan 2019 17:32:28 +0100 Subject: [PATCH] adding more dimmer components (#19843) * adding more dimmer components * updated library version * updated requirements_test_all --- homeassistant/components/homematicip_cloud/__init__.py | 2 +- homeassistant/components/light/homematicip_cloud.py | 7 +++++-- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/homematicip_cloud/__init__.py b/homeassistant/components/homematicip_cloud/__init__.py index 597d1660836..700e6274c35 100644 --- a/homeassistant/components/homematicip_cloud/__init__.py +++ b/homeassistant/components/homematicip_cloud/__init__.py @@ -19,7 +19,7 @@ from .const import ( from .device import HomematicipGenericDevice # noqa: F401 from .hap import HomematicipAuth, HomematicipHAP # noqa: F401 -REQUIREMENTS = ['homematicip==0.10.1'] +REQUIREMENTS = ['homematicip==0.10.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/light/homematicip_cloud.py b/homeassistant/components/light/homematicip_cloud.py index 764ead62169..2837edbd5b7 100644 --- a/homeassistant/components/light/homematicip_cloud.py +++ b/homeassistant/components/light/homematicip_cloud.py @@ -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: diff --git a/requirements_all.txt b/requirements_all.txt index 8f276b81a72..1cc6f37ee0d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -520,7 +520,7 @@ homeassistant-pyozw==0.1.1 # homekit==0.12.0 # homeassistant.components.homematicip_cloud -homematicip==0.10.1 +homematicip==0.10.3 # homeassistant.components.google # homeassistant.components.remember_the_milk diff --git a/requirements_test_all.txt b/requirements_test_all.txt index ecb147c7e81..1429a6332a0 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -107,7 +107,7 @@ holidays==0.9.8 home-assistant-frontend==20181219.0 # homeassistant.components.homematicip_cloud -homematicip==0.10.1 +homematicip==0.10.3 # homeassistant.components.influxdb # homeassistant.components.sensor.influxdb