mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Add icon translations to Nextbus (#111981)
This commit is contained in:
parent
25ba046ff1
commit
895dc6fce1
9
homeassistant/components/nextbus/icons.json
Normal file
9
homeassistant/components/nextbus/icons.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"nextbus": {
|
||||||
|
"default": "mdi:bus"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -105,7 +105,7 @@ class NextBusDepartureSensor(
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
_attr_device_class = SensorDeviceClass.TIMESTAMP
|
||||||
_attr_icon = "mdi:bus"
|
_attr_translation_key = "nextbus"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user