Add icon translations to Ukraine Alarm (#112330)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 21:49:39 +01:00 committed by GitHub
parent 928e95781e
commit cde1273399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 5 deletions

View file

@ -36,31 +36,26 @@ BINARY_SENSOR_TYPES: tuple[BinarySensorEntityDescription, ...] = (
key=ALERT_TYPE_AIR,
translation_key="air",
device_class=BinarySensorDeviceClass.SAFETY,
icon="mdi:cloud",
),
BinarySensorEntityDescription(
key=ALERT_TYPE_URBAN_FIGHTS,
translation_key="urban_fights",
device_class=BinarySensorDeviceClass.SAFETY,
icon="mdi:pistol",
),
BinarySensorEntityDescription(
key=ALERT_TYPE_ARTILLERY,
translation_key="artillery",
device_class=BinarySensorDeviceClass.SAFETY,
icon="mdi:tank",
),
BinarySensorEntityDescription(
key=ALERT_TYPE_CHEMICAL,
translation_key="chemical",
device_class=BinarySensorDeviceClass.SAFETY,
icon="mdi:chemical-weapon",
),
BinarySensorEntityDescription(
key=ALERT_TYPE_NUCLEAR,
translation_key="nuclear",
device_class=BinarySensorDeviceClass.SAFETY,
icon="mdi:nuke",
),
)

View file

@ -0,0 +1,21 @@
{
"entity": {
"binary_sensor": {
"air": {
"default": "mdi:cloud"
},
"urban_fights": {
"default": "mdi:pistol"
},
"artillery": {
"default": "mdi:tank"
},
"chemical": {
"default": "mdi:chemical-weapon"
},
"nuclear": {
"default": "mdi:nuke"
}
}
}
}