From 4244ea78d028367547ddcf315c77fd7b9093787b Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Tue, 1 Jan 2019 16:25:57 +0100 Subject: [PATCH] Update pyhomematic 0.1.54 + small fixes (#19667) * Update pyhomematic + small fix * Add casting for ILLUMINATION * Revert suggested fix --- homeassistant/components/homematic/__init__.py | 6 +++--- homeassistant/components/sensor/homematic.py | 1 + requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/homematic/__init__.py b/homeassistant/components/homematic/__init__.py index ee99e236fa9..e2709bde92a 100644 --- a/homeassistant/components/homematic/__init__.py +++ b/homeassistant/components/homematic/__init__.py @@ -19,7 +19,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity -REQUIREMENTS = ['pyhomematic==0.1.53'] +REQUIREMENTS = ['pyhomematic==0.1.54'] _LOGGER = logging.getLogger(__name__) @@ -79,7 +79,7 @@ HM_DEVICE_TYPES = { 'IPWeatherSensor', 'RotaryHandleSensorIP', 'IPPassageSensor', 'IPKeySwitchPowermeter', 'IPThermostatWall230V', 'IPWeatherSensorPlus', 'IPWeatherSensorBasic', 'IPBrightnessSensor', 'IPGarage', - 'UniversalSensor'], + 'UniversalSensor', 'MotionIPV2'], DISCOVER_CLIMATE: [ 'Thermostat', 'ThermostatWall', 'MAXThermostat', 'ThermostatWall2', 'MAXWallThermostat', 'IPThermostat', 'IPThermostatWall', @@ -89,7 +89,7 @@ HM_DEVICE_TYPES = { 'MotionIP', 'RemoteMotion', 'WeatherSensor', 'TiltSensor', 'IPShutterContact', 'HMWIOSwitch', 'MaxShutterContact', 'Rain', 'WiredSensor', 'PresenceIP', 'IPWeatherSensor', 'IPPassageSensor', - 'SmartwareMotion', 'IPWeatherSensorPlus'], + 'SmartwareMotion', 'IPWeatherSensorPlus', 'MotionIPV2'], DISCOVER_COVER: ['Blind', 'KeyBlind', 'IPKeyBlind', 'IPKeyBlindTilt'], DISCOVER_LOCKS: ['KeyMatic'] } diff --git a/homeassistant/components/sensor/homematic.py b/homeassistant/components/sensor/homematic.py index 26fa76d94a9..84cf19652a1 100644 --- a/homeassistant/components/sensor/homematic.py +++ b/homeassistant/components/sensor/homematic.py @@ -48,6 +48,7 @@ HM_UNIT_HA_CAST = { 'GAS_POWER': 'm3', 'GAS_ENERGY_COUNTER': 'm3', 'LUX': 'lx', + 'ILLUMINATION': 'lx', 'CURRENT_ILLUMINATION': 'lx', 'AVERAGE_ILLUMINATION': 'lx', 'LOWEST_ILLUMINATION': 'lx', diff --git a/requirements_all.txt b/requirements_all.txt index 5221728adcf..29e999450c3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1022,7 +1022,7 @@ pyhik==0.1.9 pyhiveapi==0.2.14 # homeassistant.components.homematic -pyhomematic==0.1.53 +pyhomematic==0.1.54 # homeassistant.components.homeworks pyhomeworks==0.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 10c1b12b7b3..1982d1cc136 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -175,7 +175,7 @@ pydeconz==47 pydispatcher==2.0.5 # homeassistant.components.homematic -pyhomematic==0.1.53 +pyhomematic==0.1.54 # homeassistant.components.litejet pylitejet==0.1