mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Add icon translations to Tankerkoenig (#108499)
This commit is contained in:
parent
6901a80a70
commit
f40c8ce403
15
homeassistant/components/tankerkoenig/icons.json
Normal file
15
homeassistant/components/tankerkoenig/icons.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"e5": {
|
||||||
|
"default": "mdi:gas-station"
|
||||||
|
},
|
||||||
|
"e10": {
|
||||||
|
"default": "mdi:gas-station"
|
||||||
|
},
|
||||||
|
"diesel": {
|
||||||
|
"default": "mdi:gas-station"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -60,7 +60,6 @@ class FuelPriceSensor(TankerkoenigCoordinatorEntity, SensorEntity):
|
|||||||
_attr_attribution = ATTRIBUTION
|
_attr_attribution = ATTRIBUTION
|
||||||
_attr_state_class = SensorStateClass.MEASUREMENT
|
_attr_state_class = SensorStateClass.MEASUREMENT
|
||||||
_attr_native_unit_of_measurement = CURRENCY_EURO
|
_attr_native_unit_of_measurement = CURRENCY_EURO
|
||||||
_attr_icon = "mdi:gas-station"
|
|
||||||
|
|
||||||
def __init__(self, fuel_type, station, coordinator, show_on_map):
|
def __init__(self, fuel_type, station, coordinator, show_on_map):
|
||||||
"""Initialize the sensor."""
|
"""Initialize the sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user