mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add icon translations to HVV departures (#111728)
This commit is contained in:
parent
5a57816e50
commit
2b3630b054
9
homeassistant/components/hvv_departures/icons.json
Normal file
9
homeassistant/components/hvv_departures/icons.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"departures": {
|
||||
"default": "mdi:bus"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -21,7 +21,6 @@ from .const import ATTRIBUTION, CONF_REAL_TIME, CONF_STATION, DOMAIN, MANUFACTUR
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)
|
||||
MAX_LIST = 20
|
||||
MAX_TIME_OFFSET = 360
|
||||
ICON = "mdi:bus"
|
||||
|
||||
ATTR_DEPARTURE = "departure"
|
||||
ATTR_LINE = "line"
|
||||
@ -58,7 +57,6 @@ class HVVDepartureSensor(SensorEntity):
|
||||
|
||||
_attr_attribution = ATTRIBUTION
|
||||
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
||||
_attr_icon = ICON
|
||||
_attr_translation_key = "departures"
|
||||
_attr_has_entity_name = True
|
||||
_attr_available = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user