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:
@@ -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."""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user