From d04f3530dffb8de024124acb002e41be84d9b020 Mon Sep 17 00:00:00 2001 From: mettolen <1007649+mettolen@users.noreply.github.com> Date: Wed, 18 Mar 2026 09:28:02 +0200 Subject: [PATCH] Remove the icon property from Huum climate entity (#165870) --- homeassistant/components/huum/climate.py | 7 ------- homeassistant/components/huum/quality_scale.yaml | 6 +----- tests/components/huum/snapshots/test_climate.ambr | 3 +-- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/homeassistant/components/huum/climate.py b/homeassistant/components/huum/climate.py index 9eabd0344ac..fd7786f5e55 100644 --- a/homeassistant/components/huum/climate.py +++ b/homeassistant/components/huum/climate.py @@ -72,13 +72,6 @@ class HuumDevice(HuumBaseEntity, ClimateEntity): return HVACMode.HEAT return HVACMode.OFF - @property - def icon(self) -> str: - """Return nice icon for heater.""" - if self.hvac_mode == HVACMode.HEAT: - return "mdi:radiator" - return "mdi:radiator-off" - @property def current_temperature(self) -> int | None: """Return the current temperature.""" diff --git a/homeassistant/components/huum/quality_scale.yaml b/homeassistant/components/huum/quality_scale.yaml index 092f5e5b6ac..872fd0365f1 100644 --- a/homeassistant/components/huum/quality_scale.yaml +++ b/homeassistant/components/huum/quality_scale.yaml @@ -66,11 +66,7 @@ rules: comment: All entities are core functionality. entity-translations: done exception-translations: todo - icon-translations: - status: done - comment: | - PLANNED: Remove the icon property from climate.py — entities should not set - custom icons. Use HA defaults or icon translations instead. + icon-translations: done reconfiguration-flow: todo repair-issues: status: exempt diff --git a/tests/components/huum/snapshots/test_climate.ambr b/tests/components/huum/snapshots/test_climate.ambr index d4aa124e912..239973a7e89 100644 --- a/tests/components/huum/snapshots/test_climate.ambr +++ b/tests/components/huum/snapshots/test_climate.ambr @@ -33,7 +33,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:radiator-off', + 'original_icon': None, 'original_name': None, 'platform': 'huum', 'previous_unique_id': None, @@ -53,7 +53,6 @@ , , ]), - 'icon': 'mdi:radiator-off', 'max_temp': 110, 'min_temp': 40, 'supported_features': ,