Add icon translations to Swiss public transport (#112254)

This commit is contained in:
Joost Lekkerkerker 2024-03-04 16:58:38 +01:00 committed by GitHub
parent d7c91a4195
commit f0487da6f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -108,7 +108,6 @@ class SwissPublicTransportSensor(
"""Implementation of a Swiss public transport sensor."""
_attr_attribution = "Data provided by transport.opendata.ch"
_attr_icon = "mdi:bus"
_attr_has_entity_name = True
_attr_translation_key = "departure"
_attr_device_class = SensorDeviceClass.TIMESTAMP