Add icon translations to Nextbus (#111981)

This commit is contained in:
Joost Lekkerkerker
2024-03-03 14:08:19 +01:00
committed by GitHub
parent 25ba046ff1
commit 895dc6fce1
2 changed files with 10 additions and 1 deletions

View File

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

View File

@@ -105,7 +105,7 @@ class NextBusDepartureSensor(
"""
_attr_device_class = SensorDeviceClass.TIMESTAMP
_attr_icon = "mdi:bus"
_attr_translation_key = "nextbus"
def __init__(
self,