mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Add icon translations to Energyzero (#111513)
* Add icon translations to Energyzero * Add icon translations to Energyzero
This commit is contained in:
parent
c4d719a7cf
commit
9cf874d4a0
16
homeassistant/components/energyzero/icons.json
Normal file
16
homeassistant/components/energyzero/icons.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"percentage_of_max": {
|
||||
"default": "mdi:percent"
|
||||
},
|
||||
"hours_priced_equal_or_lower": {
|
||||
"default": "mdi:clock"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"get_gas_prices": "mdi:gas-station",
|
||||
"get_energy_prices": "mdi:lightning-bolt"
|
||||
}
|
||||
}
|
@ -117,7 +117,6 @@ SENSORS: tuple[EnergyZeroSensorEntityDescription, ...] = (
|
||||
translation_key="percentage_of_max",
|
||||
service_type="today_energy",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:percent",
|
||||
value_fn=lambda data: data.energy_today.pct_of_max_price,
|
||||
),
|
||||
EnergyZeroSensorEntityDescription(
|
||||
@ -125,7 +124,6 @@ SENSORS: tuple[EnergyZeroSensorEntityDescription, ...] = (
|
||||
translation_key="hours_priced_equal_or_lower",
|
||||
service_type="today_energy",
|
||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||
icon="mdi:clock",
|
||||
value_fn=lambda data: data.energy_today.hours_priced_equal_or_lower,
|
||||
),
|
||||
)
|
||||
|
@ -674,7 +674,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'attribution': 'Data provided by EnergyZero',
|
||||
'friendly_name': 'Energy market price Hours priced equal or lower than current - today',
|
||||
'icon': 'mdi:clock',
|
||||
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@ -707,7 +706,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:clock',
|
||||
'original_icon': None,
|
||||
'original_name': 'Hours priced equal or lower than current - today',
|
||||
'platform': 'energyzero',
|
||||
'previous_unique_id': None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user