adding more dimmer components (#19843)
* adding more dimmer components * updated library version * updated requirements_test_all
This commit is contained in:
parent
dd75c49796
commit
0af635e8d7
4 changed files with 8 additions and 5 deletions
|
@ -19,7 +19,7 @@ from .const import (
|
||||||
from .device import HomematicipGenericDevice # noqa: F401
|
from .device import HomematicipGenericDevice # noqa: F401
|
||||||
from .hap import HomematicipAuth, HomematicipHAP # noqa: F401
|
from .hap import HomematicipAuth, HomematicipHAP # noqa: F401
|
||||||
|
|
||||||
REQUIREMENTS = ['homematicip==0.10.1']
|
REQUIREMENTS = ['homematicip==0.10.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -29,14 +29,17 @@ async def async_setup_platform(
|
||||||
|
|
||||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||||
"""Set up the HomematicIP Cloud lights from a config entry."""
|
"""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
|
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
|
||||||
devices = []
|
devices = []
|
||||||
for device in home.devices:
|
for device in home.devices:
|
||||||
if isinstance(device, AsyncBrandSwitchMeasuring):
|
if isinstance(device, AsyncBrandSwitchMeasuring):
|
||||||
devices.append(HomematicipLightMeasuring(home, device))
|
devices.append(HomematicipLightMeasuring(home, device))
|
||||||
elif isinstance(device, AsyncDimmer):
|
elif isinstance(device,
|
||||||
|
(AsyncDimmer, AsyncPluggableDimmer,
|
||||||
|
AsyncBrandDimmer, AsyncFullFlushDimmer)):
|
||||||
devices.append(HomematicipDimmer(home, device))
|
devices.append(HomematicipDimmer(home, device))
|
||||||
|
|
||||||
if devices:
|
if devices:
|
||||||
|
|
|
@ -520,7 +520,7 @@ homeassistant-pyozw==0.1.1
|
||||||
# homekit==0.12.0
|
# homekit==0.12.0
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==0.10.1
|
homematicip==0.10.3
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
# homeassistant.components.remember_the_milk
|
# homeassistant.components.remember_the_milk
|
||||||
|
|
|
@ -107,7 +107,7 @@ holidays==0.9.8
|
||||||
home-assistant-frontend==20181219.0
|
home-assistant-frontend==20181219.0
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==0.10.1
|
homematicip==0.10.3
|
||||||
|
|
||||||
# homeassistant.components.influxdb
|
# homeassistant.components.influxdb
|
||||||
# homeassistant.components.sensor.influxdb
|
# homeassistant.components.sensor.influxdb
|
||||||
|
|
Loading…
Add table
Reference in a new issue