adding more dimmer components (#19843)

* adding more dimmer components

* updated library version

* updated requirements_test_all
pull/19850/head
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

@ -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__)

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:

View File

@ -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

View File

@ -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