mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
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:
parent
b5e296238f
commit
8a57255796
@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homematicip.aio.device import (
|
from homematicip.aio.device import (
|
||||||
|
AsyncContactInterface,
|
||||||
AsyncDevice,
|
AsyncDevice,
|
||||||
AsyncFullFlushContactInterface,
|
AsyncFullFlushContactInterface,
|
||||||
AsyncMotionDetectorIndoor,
|
AsyncMotionDetectorIndoor,
|
||||||
@ -10,6 +11,7 @@ from homematicip.aio.device import (
|
|||||||
AsyncPresenceDetectorIndoor,
|
AsyncPresenceDetectorIndoor,
|
||||||
AsyncRotaryHandleSensor,
|
AsyncRotaryHandleSensor,
|
||||||
AsyncShutterContact,
|
AsyncShutterContact,
|
||||||
|
AsyncShutterContactMagnetic,
|
||||||
AsyncSmokeDetector,
|
AsyncSmokeDetector,
|
||||||
AsyncWaterSensor,
|
AsyncWaterSensor,
|
||||||
AsyncWeatherSensor,
|
AsyncWeatherSensor,
|
||||||
@ -63,9 +65,12 @@ async def async_setup_entry(
|
|||||||
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, AsyncFullFlushContactInterface):
|
if isinstance(device, (AsyncContactInterface, AsyncFullFlushContactInterface)):
|
||||||
devices.append(HomematicipContactInterface(home, device))
|
devices.append(HomematicipContactInterface(home, device))
|
||||||
if isinstance(device, (AsyncShutterContact, AsyncRotaryHandleSensor)):
|
if isinstance(
|
||||||
|
device,
|
||||||
|
(AsyncShutterContact, AsyncShutterContactMagnetic, AsyncRotaryHandleSensor),
|
||||||
|
):
|
||||||
devices.append(HomematicipShutterContact(home, device))
|
devices.append(HomematicipShutterContact(home, device))
|
||||||
if isinstance(
|
if isinstance(
|
||||||
device,
|
device,
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/homematicip_cloud",
|
"documentation": "https://www.home-assistant.io/components/homematicip_cloud",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"homematicip==0.10.9"
|
"homematicip==0.10.10"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": []
|
"codeowners": []
|
||||||
|
@ -635,7 +635,7 @@ homeassistant-pyozw==0.1.4
|
|||||||
homekit[IP]==0.15.0
|
homekit[IP]==0.15.0
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==0.10.9
|
homematicip==0.10.10
|
||||||
|
|
||||||
# homeassistant.components.horizon
|
# homeassistant.components.horizon
|
||||||
horimote==0.4.1
|
horimote==0.4.1
|
||||||
|
@ -180,7 +180,7 @@ home-assistant-frontend==20190801.0
|
|||||||
homekit[IP]==0.15.0
|
homekit[IP]==0.15.0
|
||||||
|
|
||||||
# homeassistant.components.homematicip_cloud
|
# homeassistant.components.homematicip_cloud
|
||||||
homematicip==0.10.9
|
homematicip==0.10.10
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
# homeassistant.components.remember_the_milk
|
# homeassistant.components.remember_the_milk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user