From 333f199bd438c7e60b4cc79b394b04bda1151a75 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 15 Jun 2021 12:13:03 +0200 Subject: [PATCH] Additional units for HM-ES-TX-WM with ES-IEC (#50713) The Homematic HM-ES-TX-WM with ES-IEC adapter needs additional unit cast for `IEC_POWER` and `IEC_ENERGY_COUNTER`. --- homeassistant/components/homematic/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/homematic/sensor.py b/homeassistant/components/homematic/sensor.py index 964ba15cd0a..62f2f0ccdff 100644 --- a/homeassistant/components/homematic/sensor.py +++ b/homeassistant/components/homematic/sensor.py @@ -52,6 +52,8 @@ HM_UNIT_HA_CAST = { "ENERGY_COUNTER": ENERGY_WATT_HOUR, "GAS_POWER": VOLUME_CUBIC_METERS, "GAS_ENERGY_COUNTER": VOLUME_CUBIC_METERS, + "IEC_POWER": POWER_WATT, + "IEC_ENERGY_COUNTER": ENERGY_WATT_HOUR, "LUX": LIGHT_LUX, "ILLUMINATION": LIGHT_LUX, "CURRENT_ILLUMINATION": LIGHT_LUX,