Add icon translations to Elkm1 (#111512)
This commit is contained in:
parent
1e173e82d0
commit
a9caa3e582
2 changed files with 29 additions and 2 deletions
27
homeassistant/components/elkm1/icons.json
Normal file
27
homeassistant/components/elkm1/icons.json
Normal 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"
|
||||
}
|
||||
}
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue