mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add icon translations to Garages Amsterdam (#111610)
This commit is contained in:
parent
497b63216a
commit
c09212e5aa
18
homeassistant/components/garages_amsterdam/icons.json
Normal file
18
homeassistant/components/garages_amsterdam/icons.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"free_space_short": {
|
||||||
|
"default": "mdi:car"
|
||||||
|
},
|
||||||
|
"free_space_long": {
|
||||||
|
"default": "mdi:car"
|
||||||
|
},
|
||||||
|
"short_capacity": {
|
||||||
|
"default": "mdi:car"
|
||||||
|
},
|
||||||
|
"long_capacity": {
|
||||||
|
"default": "mdi:car"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -11,10 +11,10 @@ from . import get_coordinator
|
|||||||
from .entity import GaragesAmsterdamEntity
|
from .entity import GaragesAmsterdamEntity
|
||||||
|
|
||||||
SENSORS = {
|
SENSORS = {
|
||||||
"free_space_short": "mdi:car",
|
"free_space_short",
|
||||||
"free_space_long": "mdi:car",
|
"free_space_long",
|
||||||
"short_capacity": "mdi:car",
|
"short_capacity",
|
||||||
"long_capacity": "mdi:car",
|
"long_capacity",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,7 +50,6 @@ class GaragesAmsterdamSensor(GaragesAmsterdamEntity, SensorEntity):
|
|||||||
"""Initialize garages amsterdam sensor."""
|
"""Initialize garages amsterdam sensor."""
|
||||||
super().__init__(coordinator, garage_name, info_type)
|
super().__init__(coordinator, garage_name, info_type)
|
||||||
self._attr_translation_key = info_type
|
self._attr_translation_key = info_type
|
||||||
self._attr_icon = SENSORS[info_type]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user