mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Add icon translations to co2signal (#108611)
This commit is contained in:
parent
702529627e
commit
4d5a511001
12
homeassistant/components/co2signal/icons.json
Normal file
12
homeassistant/components/co2signal/icons.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"carbon_intensity": {
|
||||
"default": "mdi:molecule-co2"
|
||||
},
|
||||
"fossil_fuel_percentage": {
|
||||
"default": "mdi:molecule-co2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -67,7 +67,6 @@ class CO2Sensor(CoordinatorEntity[CO2SignalCoordinator], SensorEntity):
|
||||
entity_description: CO2SensorEntityDescription
|
||||
_attr_attribution = ATTRIBUTION
|
||||
_attr_has_entity_name = True
|
||||
_attr_icon = "mdi:molecule-co2"
|
||||
_attr_state_class = SensorStateClass.MEASUREMENT
|
||||
|
||||
def __init__(
|
||||
|
@ -22,7 +22,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:molecule-co2',
|
||||
'original_icon': None,
|
||||
'original_name': 'CO2 intensity',
|
||||
'platform': 'co2signal',
|
||||
'previous_unique_id': None,
|
||||
@ -38,7 +38,6 @@
|
||||
'attribution': 'Data provided by Electricity Maps',
|
||||
'country_code': 'FR',
|
||||
'friendly_name': 'Electricity Maps CO2 intensity',
|
||||
'icon': 'mdi:molecule-co2',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': 'gCO2eq/kWh',
|
||||
}),
|
||||
@ -72,7 +71,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:molecule-co2',
|
||||
'original_icon': None,
|
||||
'original_name': 'Grid fossil fuel percentage',
|
||||
'platform': 'co2signal',
|
||||
'previous_unique_id': None,
|
||||
@ -88,7 +87,6 @@
|
||||
'attribution': 'Data provided by Electricity Maps',
|
||||
'country_code': 'FR',
|
||||
'friendly_name': 'Electricity Maps Grid fossil fuel percentage',
|
||||
'icon': 'mdi:molecule-co2',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user