Add icon translations to HVV departures (#111728)
parent
5a57816e50
commit
2b3630b054
|
@ -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)
|
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)
|
||||||
MAX_LIST = 20
|
MAX_LIST = 20
|
||||||
MAX_TIME_OFFSET = 360
|
MAX_TIME_OFFSET = 360
|
||||||
ICON = "mdi:bus"
|
|
||||||
|
|
||||||
ATTR_DEPARTURE = "departure"
|
ATTR_DEPARTURE = "departure"
|
||||||
ATTR_LINE = "line"
|
ATTR_LINE = "line"
|
||||||
|
@ -58,7 +57,6 @@ class HVVDepartureSensor(SensorEntity):
|
||||||
|
|
||||||
_attr_attribution = ATTRIBUTION
|
_attr_attribution = ATTRIBUTION
|
||||||
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
||||||
_attr_icon = ICON
|
|
||||||
_attr_translation_key = "departures"
|
_attr_translation_key = "departures"
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_available = False
|
_attr_available = False
|
||||||
|
|
Loading…
Reference in New Issue