From d078e50fb88ed750de2e9627f6ebaf3e1d6d1f36 Mon Sep 17 00:00:00 2001 From: Markus Jankowski Date: Thu, 11 Apr 2019 10:49:02 +0200 Subject: [PATCH] Add device HmIP-MIOB to Homematic IP Cloud (#22975) * Update upstream dependency * Add two switches --- homeassistant/components/homematicip_cloud/__init__.py | 2 +- homeassistant/components/homematicip_cloud/manifest.json | 2 +- homeassistant/components/homematicip_cloud/switch.py | 4 ++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/homematicip_cloud/__init__.py b/homeassistant/components/homematicip_cloud/__init__.py index ac93ef05b85..1330a2750ae 100644 --- a/homeassistant/components/homematicip_cloud/__init__.py +++ b/homeassistant/components/homematicip_cloud/__init__.py @@ -15,7 +15,7 @@ from .const import ( from .device import HomematicipGenericDevice # noqa: F401 from .hap import HomematicipAuth, HomematicipHAP # noqa: F401 -REQUIREMENTS = ['homematicip==0.10.6'] +REQUIREMENTS = ['homematicip==0.10.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/manifest.json b/homeassistant/components/homematicip_cloud/manifest.json index 622928e8629..030b4d5b79b 100644 --- a/homeassistant/components/homematicip_cloud/manifest.json +++ b/homeassistant/components/homematicip_cloud/manifest.json @@ -3,7 +3,7 @@ "name": "Homematicip cloud", "documentation": "https://www.home-assistant.io/components/homematicip_cloud", "requirements": [ - "homematicip==0.10.6" + "homematicip==0.10.7" ], "dependencies": [], "codeowners": [] diff --git a/homeassistant/components/homematicip_cloud/switch.py b/homeassistant/components/homematicip_cloud/switch.py index 2199b867002..f9713cd8c00 100644 --- a/homeassistant/components/homematicip_cloud/switch.py +++ b/homeassistant/components/homematicip_cloud/switch.py @@ -25,6 +25,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): AsyncBrandSwitchMeasuring, AsyncFullFlushSwitchMeasuring, AsyncOpenCollector8Module, + AsyncMultiIOBox, ) from homematicip.aio.group import AsyncSwitchingGroup @@ -45,6 +46,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities): elif isinstance(device, AsyncOpenCollector8Module): for channel in range(1, 9): devices.append(HomematicipMultiSwitch(home, device, channel)) + elif isinstance(device, AsyncMultiIOBox): + for channel in range(1, 3): + devices.append(HomematicipMultiSwitch(home, device, channel)) for group in home.groups: if isinstance(group, AsyncSwitchingGroup): diff --git a/requirements_all.txt b/requirements_all.txt index 922239c44ef..5a1367f7d13 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -551,7 +551,7 @@ homeassistant-pyozw==0.1.4 homekit[IP]==0.13.0 # homeassistant.components.homematicip_cloud -homematicip==0.10.6 +homematicip==0.10.7 # homeassistant.components.horizon horimote==0.4.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c69d4026227..25b4ecaf6d0 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -139,7 +139,7 @@ home-assistant-frontend==20190331.0 homekit[IP]==0.13.0 # homeassistant.components.homematicip_cloud -homematicip==0.10.6 +homematicip==0.10.7 # homeassistant.components.google # homeassistant.components.remember_the_milk