From 675441142d1fe51b0216365810b298c15704f9ca Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Sun, 15 Aug 2021 12:50:40 +0200 Subject: [PATCH] Update pyhomematic to 0.1.74 (#54613) --- homeassistant/components/homematic/const.py | 2 ++ homeassistant/components/homematic/manifest.json | 2 +- homeassistant/components/homematic/sensor.py | 4 ++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/homematic/const.py b/homeassistant/components/homematic/const.py index 4f1c1d12f81..0880d168375 100644 --- a/homeassistant/components/homematic/const.py +++ b/homeassistant/components/homematic/const.py @@ -62,6 +62,7 @@ HM_DEVICE_TYPES = { "IPWIODevice", "IPSwitchBattery", "IPMultiIOPCB", + "IPGarageSwitch", ], DISCOVER_LIGHTS: [ "Dimmer", @@ -125,6 +126,7 @@ HM_DEVICE_TYPES = { "TempModuleSTE2", "IPMultiIOPCB", "ValveBoxW", + "CO2SensorIP", ], DISCOVER_CLIMATE: [ "Thermostat", diff --git a/homeassistant/components/homematic/manifest.json b/homeassistant/components/homematic/manifest.json index 8b1ee62a09e..f500ef54b56 100644 --- a/homeassistant/components/homematic/manifest.json +++ b/homeassistant/components/homematic/manifest.json @@ -2,7 +2,7 @@ "domain": "homematic", "name": "Homematic", "documentation": "https://www.home-assistant.io/integrations/homematic", - "requirements": ["pyhomematic==0.1.73"], + "requirements": ["pyhomematic==0.1.74"], "codeowners": ["@pvizeli", "@danielperna84"], "iot_class": "local_push" } diff --git a/homeassistant/components/homematic/sensor.py b/homeassistant/components/homematic/sensor.py index 7cfe0ffc944..18690ac3553 100644 --- a/homeassistant/components/homematic/sensor.py +++ b/homeassistant/components/homematic/sensor.py @@ -3,7 +3,9 @@ import logging from homeassistant.components.sensor import SensorEntity from homeassistant.const import ( + CONCENTRATION_PARTS_PER_MILLION, DEGREE, + DEVICE_CLASS_CO2, DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_ILLUMINANCE, DEVICE_CLASS_POWER, @@ -72,6 +74,7 @@ HM_UNIT_HA_CAST = { "VALVE_STATE": PERCENTAGE, "CARRIER_SENSE_LEVEL": PERCENTAGE, "DUTY_CYCLE_LEVEL": PERCENTAGE, + "CONCENTRATION": CONCENTRATION_PARTS_PER_MILLION, } HM_DEVICE_CLASS_HA_CAST = { @@ -85,6 +88,7 @@ HM_DEVICE_CLASS_HA_CAST = { "HIGHEST_ILLUMINATION": DEVICE_CLASS_ILLUMINANCE, "POWER": DEVICE_CLASS_POWER, "CURRENT": DEVICE_CLASS_POWER, + "CONCENTRATION": DEVICE_CLASS_CO2, } HM_ICON_HA_CAST = {"WIND_SPEED": "mdi:weather-windy", "BRIGHTNESS": "mdi:invert-colors"} diff --git a/requirements_all.txt b/requirements_all.txt index dce813853da..c6b8d084c8e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1487,7 +1487,7 @@ pyhik==0.2.8 pyhiveapi==0.4.2 # homeassistant.components.homematic -pyhomematic==0.1.73 +pyhomematic==0.1.74 # homeassistant.components.homeworks pyhomeworks==0.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 44ab676e9f4..cf73f4538cd 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -839,7 +839,7 @@ pyheos==0.7.2 pyhiveapi==0.4.2 # homeassistant.components.homematic -pyhomematic==0.1.73 +pyhomematic==0.1.74 # homeassistant.components.ialarm pyialarm==1.9.0