Add icon translations to HVV departures (#111728)

pull/111892/head
Joost Lekkerkerker 2024-02-28 14:19:32 +01:00 committed by GitHub
parent 5a57816e50
commit 2b3630b054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"departures": {
"default": "mdi:bus"
}
}
}
}

View File

@ -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