diff --git a/homeassistant/components/nextbus/icons.json b/homeassistant/components/nextbus/icons.json new file mode 100644 index 00000000000..7176a937e83 --- /dev/null +++ b/homeassistant/components/nextbus/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "nextbus": { + "default": "mdi:bus" + } + } + } +} diff --git a/homeassistant/components/nextbus/sensor.py b/homeassistant/components/nextbus/sensor.py index f62bf07eeef..eaedc50cf3b 100644 --- a/homeassistant/components/nextbus/sensor.py +++ b/homeassistant/components/nextbus/sensor.py @@ -105,7 +105,7 @@ class NextBusDepartureSensor( """ _attr_device_class = SensorDeviceClass.TIMESTAMP - _attr_icon = "mdi:bus" + _attr_translation_key = "nextbus" def __init__( self,