Add icon translations to Ukraine Alarm (#112330)
This commit is contained in:
parent
928e95781e
commit
cde1273399
2 changed files with 21 additions and 5 deletions
|
@ -36,31 +36,26 @@ BINARY_SENSOR_TYPES: tuple[BinarySensorEntityDescription, ...] = (
|
||||||
key=ALERT_TYPE_AIR,
|
key=ALERT_TYPE_AIR,
|
||||||
translation_key="air",
|
translation_key="air",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
icon="mdi:cloud",
|
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key=ALERT_TYPE_URBAN_FIGHTS,
|
key=ALERT_TYPE_URBAN_FIGHTS,
|
||||||
translation_key="urban_fights",
|
translation_key="urban_fights",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
icon="mdi:pistol",
|
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key=ALERT_TYPE_ARTILLERY,
|
key=ALERT_TYPE_ARTILLERY,
|
||||||
translation_key="artillery",
|
translation_key="artillery",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
icon="mdi:tank",
|
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key=ALERT_TYPE_CHEMICAL,
|
key=ALERT_TYPE_CHEMICAL,
|
||||||
translation_key="chemical",
|
translation_key="chemical",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
icon="mdi:chemical-weapon",
|
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key=ALERT_TYPE_NUCLEAR,
|
key=ALERT_TYPE_NUCLEAR,
|
||||||
translation_key="nuclear",
|
translation_key="nuclear",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.SAFETY,
|
||||||
icon="mdi:nuke",
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
21
homeassistant/components/ukraine_alarm/icons.json
Normal file
21
homeassistant/components/ukraine_alarm/icons.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue