mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add icon translations to aosmith (#111340)
* Add icon translations to aosmith * Add icon translations to aosmith
This commit is contained in:
parent
859c28fdb7
commit
4229f988e2
9
homeassistant/components/aosmith/icons.json
Normal file
9
homeassistant/components/aosmith/icons.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"hot_water_availability": {
|
||||||
|
"default": "mdi:water-thermometer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -33,7 +33,6 @@ STATUS_ENTITY_DESCRIPTIONS: tuple[AOSmithStatusSensorEntityDescription, ...] = (
|
|||||||
AOSmithStatusSensorEntityDescription(
|
AOSmithStatusSensorEntityDescription(
|
||||||
key="hot_water_availability",
|
key="hot_water_availability",
|
||||||
translation_key="hot_water_availability",
|
translation_key="hot_water_availability",
|
||||||
icon="mdi:water-thermometer",
|
|
||||||
device_class=SensorDeviceClass.ENUM,
|
device_class=SensorDeviceClass.ENUM,
|
||||||
options=["low", "medium", "high"],
|
options=["low", "medium", "high"],
|
||||||
value_fn=lambda device: HOT_WATER_STATUS_MAP.get(
|
value_fn=lambda device: HOT_WATER_STATUS_MAP.get(
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'device_class': 'enum',
|
'device_class': 'enum',
|
||||||
'friendly_name': 'My water heater Hot water availability',
|
'friendly_name': 'My water heater Hot water availability',
|
||||||
'icon': 'mdi:water-thermometer',
|
|
||||||
'options': list([
|
'options': list([
|
||||||
'low',
|
'low',
|
||||||
'medium',
|
'medium',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user