mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Add icon translations to EasyEnergy (#111413)
This commit is contained in:
parent
b3e10198dd
commit
a2af3e5ba1
20
homeassistant/components/easyenergy/icons.json
Normal file
20
homeassistant/components/easyenergy/icons.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"percentage_of_max": {
|
||||||
|
"default": "mdi:percent"
|
||||||
|
},
|
||||||
|
"hours_priced_equal_or_lower": {
|
||||||
|
"default": "mdi:clock"
|
||||||
|
},
|
||||||
|
"hours_priced_equal_or_higher": {
|
||||||
|
"default": "mdi:clock"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"get_gas_prices": "mdi:gas-station",
|
||||||
|
"get_energy_usage_prices": "mdi:transmission-tower-import",
|
||||||
|
"get_energy_return_prices": "mdi:transmission-tower-export"
|
||||||
|
}
|
||||||
|
}
|
@ -117,7 +117,6 @@ SENSORS: tuple[EasyEnergySensorEntityDescription, ...] = (
|
|||||||
translation_key="percentage_of_max",
|
translation_key="percentage_of_max",
|
||||||
service_type="today_energy_usage",
|
service_type="today_energy_usage",
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
icon="mdi:percent",
|
|
||||||
value_fn=lambda data: data.energy_today.pct_of_max_usage,
|
value_fn=lambda data: data.energy_today.pct_of_max_usage,
|
||||||
),
|
),
|
||||||
EasyEnergySensorEntityDescription(
|
EasyEnergySensorEntityDescription(
|
||||||
@ -177,7 +176,6 @@ SENSORS: tuple[EasyEnergySensorEntityDescription, ...] = (
|
|||||||
translation_key="percentage_of_max",
|
translation_key="percentage_of_max",
|
||||||
service_type="today_energy_return",
|
service_type="today_energy_return",
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
icon="mdi:percent",
|
|
||||||
value_fn=lambda data: data.energy_today.pct_of_max_return,
|
value_fn=lambda data: data.energy_today.pct_of_max_return,
|
||||||
),
|
),
|
||||||
EasyEnergySensorEntityDescription(
|
EasyEnergySensorEntityDescription(
|
||||||
@ -185,7 +183,6 @@ SENSORS: tuple[EasyEnergySensorEntityDescription, ...] = (
|
|||||||
translation_key="hours_priced_equal_or_lower",
|
translation_key="hours_priced_equal_or_lower",
|
||||||
service_type="today_energy_usage",
|
service_type="today_energy_usage",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
icon="mdi:clock",
|
|
||||||
value_fn=lambda data: data.energy_today.hours_priced_equal_or_lower_usage,
|
value_fn=lambda data: data.energy_today.hours_priced_equal_or_lower_usage,
|
||||||
),
|
),
|
||||||
EasyEnergySensorEntityDescription(
|
EasyEnergySensorEntityDescription(
|
||||||
@ -193,7 +190,6 @@ SENSORS: tuple[EasyEnergySensorEntityDescription, ...] = (
|
|||||||
translation_key="hours_priced_equal_or_higher",
|
translation_key="hours_priced_equal_or_higher",
|
||||||
service_type="today_energy_return",
|
service_type="today_energy_return",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
icon="mdi:clock",
|
|
||||||
value_fn=lambda data: data.energy_today.hours_priced_equal_or_higher_return,
|
value_fn=lambda data: data.energy_today.hours_priced_equal_or_higher_return,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user