1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 16:36:08 +01:00

Remove the icon property from Huum climate entity (#165870)

This commit is contained in:
mettolen
2026-03-18 09:28:02 +02:00
committed by GitHub
parent 647d957ffe
commit d04f3530df
3 changed files with 2 additions and 14 deletions

View File

@@ -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."""

View File

@@ -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

View File

@@ -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 @@
<HVACMode.HEAT: 'heat'>,
<HVACMode.OFF: 'off'>,
]),
'icon': 'mdi:radiator-off',
'max_temp': 110,
'min_temp': 40,
'supported_features': <ClimateEntityFeature: 385>,