From 3032283b99e8da50e3107806a98eef811d4b39d2 Mon Sep 17 00:00:00 2001 From: Markus Jankowski Date: Sun, 3 Mar 2019 21:33:48 +0100 Subject: [PATCH] Add device HMIP-eTRV-C to HomematicIP (#21612) * Update dependencies * Add additional device HMIP-eTRV-C add valveActualTemperature to HeatingThermostats (HMIP-eTRV-C, HMIP-eTRV, HMIP-eTRV-2) * Removed HomematicipThermostatTemperatureSensor already in climate --- homeassistant/components/homematicip_cloud/__init__.py | 2 +- homeassistant/components/homematicip_cloud/sensor.py | 8 +++++--- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/homematicip_cloud/__init__.py b/homeassistant/components/homematicip_cloud/__init__.py index fd07356d7fb..7bc5f33d42f 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.5'] +REQUIREMENTS = ['homematicip==0.10.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index f1a20e46922..9ded8fe65d2 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -5,7 +5,7 @@ from homeassistant.components.homematicip_cloud import ( DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice) from homeassistant.const import ( DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_ILLUMINANCE, DEVICE_CLASS_TEMPERATURE, - TEMP_CELSIUS, POWER_WATT) + POWER_WATT, TEMP_CELSIUS) _LOGGER = logging.getLogger(__name__) @@ -27,7 +27,8 @@ async def async_setup_platform( async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the HomematicIP Cloud sensors from a config entry.""" from homematicip.aio.device import ( - AsyncHeatingThermostat, AsyncTemperatureHumiditySensorWithoutDisplay, + AsyncHeatingThermostat, AsyncHeatingThermostatCompact, + AsyncTemperatureHumiditySensorWithoutDisplay, AsyncTemperatureHumiditySensorDisplay, AsyncMotionDetectorIndoor, AsyncTemperatureHumiditySensorOutdoor, AsyncMotionDetectorPushButton, AsyncLightSensor, @@ -37,7 +38,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities): home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home devices = [HomematicipAccesspointStatus(home)] for device in home.devices: - if isinstance(device, AsyncHeatingThermostat): + if isinstance(device, (AsyncHeatingThermostat, + AsyncHeatingThermostatCompact)): devices.append(HomematicipHeatingThermostat(home, device)) if isinstance(device, (AsyncTemperatureHumiditySensorDisplay, AsyncTemperatureHumiditySensorWithoutDisplay, diff --git a/requirements_all.txt b/requirements_all.txt index f07763d45d6..c8cb20a8390 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -548,7 +548,7 @@ homeassistant-pyozw==0.1.2 homekit==0.12.2 # homeassistant.components.homematicip_cloud -homematicip==0.10.5 +homematicip==0.10.6 # homeassistant.components.google # homeassistant.components.remember_the_milk diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 5b6a8d11cd8..fe77712e7e5 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -126,7 +126,7 @@ home-assistant-frontend==20190228.0 homekit==0.12.2 # homeassistant.components.homematicip_cloud -homematicip==0.10.5 +homematicip==0.10.6 # homeassistant.components.influxdb # homeassistant.components.sensor.influxdb