Add icon translations to Tradfri (#112319)
This commit is contained in:
parent
7f6c6e39c0
commit
421014bf8d
2 changed files with 12 additions and 2 deletions
12
homeassistant/components/tradfri/icons.json
Normal file
12
homeassistant/components/tradfri/icons.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"aqi": {
|
||||
"default": "mdi:air-filter"
|
||||
},
|
||||
"filter_life_remaining": {
|
||||
"default": "mdi:clock-outline"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -91,7 +91,6 @@ SENSOR_DESCRIPTIONS_FAN: tuple[TradfriSensorEntityDescription, ...] = (
|
|||
translation_key="aqi",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
||||
icon="mdi:air-filter",
|
||||
value=_get_air_quality,
|
||||
),
|
||||
TradfriSensorEntityDescription(
|
||||
|
@ -99,7 +98,6 @@ SENSOR_DESCRIPTIONS_FAN: tuple[TradfriSensorEntityDescription, ...] = (
|
|||
translation_key="filter_life_remaining",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||
icon="mdi:clock-outline",
|
||||
value=_get_filter_time_left,
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue