Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions homeassistant/components/garages_amsterdam/icons.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
9 changes: 4 additions & 5 deletions homeassistant/components/garages_amsterdam/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from .entity import GaragesAmsterdamEntity

SENSORS = {
"free_space_short": "mdi:car",
"free_space_long": "mdi:car",
"short_capacity": "mdi:car",
"long_capacity": "mdi:car",
"free_space_short",
"free_space_long",
"short_capacity",
"long_capacity",
}


Expand Down Expand Up @@ -50,7 +50,6 @@ def __init__(
"""Initialize garages amsterdam sensor."""
super().__init__(coordinator, garage_name, info_type)
self._attr_translation_key = info_type
self._attr_icon = SENSORS[info_type]

@property
def available(self) -> bool:
Expand Down