From d8e633e56c4573104a234c97aa57a342905159af Mon Sep 17 00:00:00 2001 From: Kiril Kurkianec Date: Tue, 30 Jan 2024 14:11:53 +0200 Subject: [PATCH] Mixer sensor key change --- custom_components/econet300/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/econet300/sensor.py b/custom_components/econet300/sensor.py index be913f5..29195b7 100644 --- a/custom_components/econet300/sensor.py +++ b/custom_components/econet300/sensor.py @@ -142,7 +142,7 @@ def create_mixer_sensor_entity_description( "Creating Mixer entity description for key: %s, and type : %s", key, entity_type ) entity_description = EconetSensorEntityDescription( - key=f"{entity_type}{key}", + key=str(key), translation_key=camel_to_snake(f"{entity_type}{key}"), icon=ENTITY_ICON.get(entity_type, None), native_unit_of_measurement=ENTITY_UNIT_MAP.get(entity_type, None),