Add HmIP-SCI to Homematic IP Cloud, Fix HmIP-SWDM (#25639)

* Add HmIP-SCI to Homematic IP Cloud

* Bump upstream dependency

* Fix HmIP-SWDM
This commit is contained in:
SukramJ 2019-08-02 01:43:08 +02:00 committed by Andrew Sayre
parent b5e296238f
commit 8a57255796
4 changed files with 10 additions and 5 deletions

View File

@ -2,6 +2,7 @@
import logging
from homematicip.aio.device import (
AsyncContactInterface,
AsyncDevice,
AsyncFullFlushContactInterface,
AsyncMotionDetectorIndoor,
@ -10,6 +11,7 @@ from homematicip.aio.device import (
AsyncPresenceDetectorIndoor,
AsyncRotaryHandleSensor,
AsyncShutterContact,
AsyncShutterContactMagnetic,
AsyncSmokeDetector,
AsyncWaterSensor,
AsyncWeatherSensor,
@ -63,9 +65,12 @@ async def async_setup_entry(
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
devices = []
for device in home.devices:
if isinstance(device, AsyncFullFlushContactInterface):
if isinstance(device, (AsyncContactInterface, AsyncFullFlushContactInterface)):
devices.append(HomematicipContactInterface(home, device))
if isinstance(device, (AsyncShutterContact, AsyncRotaryHandleSensor)):
if isinstance(
device,
(AsyncShutterContact, AsyncShutterContactMagnetic, AsyncRotaryHandleSensor),
):
devices.append(HomematicipShutterContact(home, device))
if isinstance(
device,

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/homematicip_cloud",
"requirements": [
"homematicip==0.10.9"
"homematicip==0.10.10"
],
"dependencies": [],
"codeowners": []

View File

@ -635,7 +635,7 @@ homeassistant-pyozw==0.1.4
homekit[IP]==0.15.0
# homeassistant.components.homematicip_cloud
homematicip==0.10.9
homematicip==0.10.10
# homeassistant.components.horizon
horimote==0.4.1

View File

@ -180,7 +180,7 @@ home-assistant-frontend==20190801.0
homekit[IP]==0.15.0
# homeassistant.components.homematicip_cloud
homematicip==0.10.9
homematicip==0.10.10
# homeassistant.components.google
# homeassistant.components.remember_the_milk