Add icon translations to Elkm1 (#111512)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 05:45:03 +01:00 committed by GitHub
parent 1e173e82d0
commit a9caa3e582
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,27 @@
{
"entity": {
"sensor": {
"panel": {
"default": "mdi:home"
},
"setting": {
"default": "mdi:numeric"
}
}
},
"services": {
"alarm_bypass": "mdi:shield-off",
"alarm_clear_bypass": "mdi:shield",
"alarm_arm_home_instant": "mdi:shield-lock",
"alarm_arm_night_instant": "mdi:shield-moon",
"alarm_arm_vacation": "mdi:beach",
"alarm_display_message": "mdi:message-alert",
"set_time": "mdi:clock-edit",
"speak_phrase": "mdi:message-processing",
"speak_word": "mdi:message-minus",
"sensor_counter_refresh": "mdi:refresh",
"sensor_counter_set": "mdi:counter",
"sensor_zone_bypass": "mdi:shield-off",
"sensor_zone_trigger": "mdi:shield"
}
}

View file

@ -161,7 +161,7 @@ class ElkKeypad(ElkSensor):
class ElkPanel(ElkSensor):
"""Representation of an Elk-M1 Panel."""
_attr_icon = "mdi:home"
_attr_translation_key = "panel"
_attr_entity_category = EntityCategory.DIAGNOSTIC
_element: Panel
@ -184,7 +184,7 @@ class ElkPanel(ElkSensor):
class ElkSetting(ElkSensor):
"""Representation of an Elk-M1 Setting."""
_attr_icon = "mdi:numeric"
_attr_translation_key = "setting"
_element: Setting
def _element_changed(self, _: Element, changeset: Any) -> None: