mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add icon translations to Ukraine Alarm (#112330)
This commit is contained in:
parent
928e95781e
commit
cde1273399
@ -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",
|
||||
),
|
||||
)
|
||||
|
||||
|
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…
x
Reference in New Issue
Block a user