mirror of
https://github.com/home-assistant/core.git
synced 2026-04-17 23:53:49 +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.HEAT
|
||||||
return HVACMode.OFF
|
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
|
@property
|
||||||
def current_temperature(self) -> int | None:
|
def current_temperature(self) -> int | None:
|
||||||
"""Return the current temperature."""
|
"""Return the current temperature."""
|
||||||
|
|||||||
@@ -66,11 +66,7 @@ rules:
|
|||||||
comment: All entities are core functionality.
|
comment: All entities are core functionality.
|
||||||
entity-translations: done
|
entity-translations: done
|
||||||
exception-translations: todo
|
exception-translations: todo
|
||||||
icon-translations:
|
icon-translations: done
|
||||||
status: done
|
|
||||||
comment: |
|
|
||||||
PLANNED: Remove the icon property from climate.py — entities should not set
|
|
||||||
custom icons. Use HA defaults or icon translations instead.
|
|
||||||
reconfiguration-flow: todo
|
reconfiguration-flow: todo
|
||||||
repair-issues:
|
repair-issues:
|
||||||
status: exempt
|
status: exempt
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': None,
|
'original_device_class': None,
|
||||||
'original_icon': 'mdi:radiator-off',
|
'original_icon': None,
|
||||||
'original_name': None,
|
'original_name': None,
|
||||||
'platform': 'huum',
|
'platform': 'huum',
|
||||||
'previous_unique_id': None,
|
'previous_unique_id': None,
|
||||||
@@ -53,7 +53,6 @@
|
|||||||
<HVACMode.HEAT: 'heat'>,
|
<HVACMode.HEAT: 'heat'>,
|
||||||
<HVACMode.OFF: 'off'>,
|
<HVACMode.OFF: 'off'>,
|
||||||
]),
|
]),
|
||||||
'icon': 'mdi:radiator-off',
|
|
||||||
'max_temp': 110,
|
'max_temp': 110,
|
||||||
'min_temp': 40,
|
'min_temp': 40,
|
||||||
'supported_features': <ClimateEntityFeature: 385>,
|
'supported_features': <ClimateEntityFeature: 385>,
|
||||||
|
|||||||
Reference in New Issue
Block a user