From 895dc6fce1209f57f09b4d0e982196cfe1c51950 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 3 Mar 2024 14:08:19 +0100 Subject: [PATCH] Add icon translations to Nextbus (#111981) --- homeassistant/components/nextbus/icons.json | 9 +++++++++ homeassistant/components/nextbus/sensor.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 homeassistant/components/nextbus/icons.json 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,