mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add icon translations to Environment Canada (#111527)
* Add icon translations to Environment Canada * Add icon translations to Environment Canada
This commit is contained in:
parent
dfd8179a2d
commit
e2c38c6415
24
homeassistant/components/environment_canada/icons.json
Normal file
24
homeassistant/components/environment_canada/icons.json
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"advisories": {
|
||||||
|
"default": "mdi:bell-alert"
|
||||||
|
},
|
||||||
|
"endings": {
|
||||||
|
"default": "mdi:alert-circle-check"
|
||||||
|
},
|
||||||
|
"statements": {
|
||||||
|
"default": "mdi:bell-alert"
|
||||||
|
},
|
||||||
|
"warnings": {
|
||||||
|
"default": "mdi:alert-octagon"
|
||||||
|
},
|
||||||
|
"watches": {
|
||||||
|
"default": "mdi:alert"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_radar_type": "mdi:radar"
|
||||||
|
}
|
||||||
|
}
|
@ -235,35 +235,30 @@ ALERT_TYPES: tuple[ECSensorEntityDescription, ...] = (
|
|||||||
ECSensorEntityDescription(
|
ECSensorEntityDescription(
|
||||||
key="advisories",
|
key="advisories",
|
||||||
translation_key="advisories",
|
translation_key="advisories",
|
||||||
icon="mdi:bell-alert",
|
|
||||||
value_fn=lambda data: data.alerts.get("advisories", {}).get("value"),
|
value_fn=lambda data: data.alerts.get("advisories", {}).get("value"),
|
||||||
transform=len,
|
transform=len,
|
||||||
),
|
),
|
||||||
ECSensorEntityDescription(
|
ECSensorEntityDescription(
|
||||||
key="endings",
|
key="endings",
|
||||||
translation_key="endings",
|
translation_key="endings",
|
||||||
icon="mdi:alert-circle-check",
|
|
||||||
value_fn=lambda data: data.alerts.get("endings", {}).get("value"),
|
value_fn=lambda data: data.alerts.get("endings", {}).get("value"),
|
||||||
transform=len,
|
transform=len,
|
||||||
),
|
),
|
||||||
ECSensorEntityDescription(
|
ECSensorEntityDescription(
|
||||||
key="statements",
|
key="statements",
|
||||||
translation_key="statements",
|
translation_key="statements",
|
||||||
icon="mdi:bell-alert",
|
|
||||||
value_fn=lambda data: data.alerts.get("statements", {}).get("value"),
|
value_fn=lambda data: data.alerts.get("statements", {}).get("value"),
|
||||||
transform=len,
|
transform=len,
|
||||||
),
|
),
|
||||||
ECSensorEntityDescription(
|
ECSensorEntityDescription(
|
||||||
key="warnings",
|
key="warnings",
|
||||||
translation_key="warnings",
|
translation_key="warnings",
|
||||||
icon="mdi:alert-octagon",
|
|
||||||
value_fn=lambda data: data.alerts.get("warnings", {}).get("value"),
|
value_fn=lambda data: data.alerts.get("warnings", {}).get("value"),
|
||||||
transform=len,
|
transform=len,
|
||||||
),
|
),
|
||||||
ECSensorEntityDescription(
|
ECSensorEntityDescription(
|
||||||
key="watches",
|
key="watches",
|
||||||
translation_key="watches",
|
translation_key="watches",
|
||||||
icon="mdi:alert",
|
|
||||||
value_fn=lambda data: data.alerts.get("watches", {}).get("value"),
|
value_fn=lambda data: data.alerts.get("watches", {}).get("value"),
|
||||||
transform=len,
|
transform=len,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user