adding more dimmer components (#19843)
* adding more dimmer components * updated library version * updated requirements_test_allpull/19850/head
parent
dd75c49796
commit
0af635e8d7
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue