Add icon translations to alarmdecoder (#111319)

This commit is contained in:
Joost Lekkerkerker 2024-02-25 10:36:18 +01:00 committed by GitHub
parent 20f455d39f
commit a706d5e282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
{
"entity": {
"sensor": {
"alarm_panel_display": {
"default": "mdi:alarm-check"
}
}
},
"services": {
"alarm_keypress": "mdi:dialpad",
"alarm_toggle_chime": "mdi:abc"
}
}

View File

@ -20,7 +20,7 @@ async def async_setup_entry(
class AlarmDecoderSensor(SensorEntity):
"""Representation of an AlarmDecoder keypad."""
_attr_icon = "mdi:alarm-check"
_attr_translation_key = "alarm_panel_display"
_attr_name = "Alarm Panel Display"
_attr_should_poll = False