Add icon translations to Doorbird (#111370)
This commit is contained in:
parent
724b5c8892
commit
67165349c5
2 changed files with 14 additions and 2 deletions
|
@ -33,13 +33,13 @@ class DoorbirdButtonEntityDescription(
|
|||
|
||||
RELAY_ENTITY_DESCRIPTION = DoorbirdButtonEntityDescription(
|
||||
key="relay",
|
||||
translation_key="relay",
|
||||
press_action=lambda device, relay: device.energize_relay(relay),
|
||||
icon="mdi:dip-switch",
|
||||
)
|
||||
IR_ENTITY_DESCRIPTION = DoorbirdButtonEntityDescription(
|
||||
key="ir",
|
||||
translation_key="ir",
|
||||
press_action=lambda device, _: device.turn_light_on(),
|
||||
icon="mdi:lightbulb",
|
||||
)
|
||||
|
||||
|
||||
|
|
12
homeassistant/components/doorbird/icons.json
Normal file
12
homeassistant/components/doorbird/icons.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"entity": {
|
||||
"button": {
|
||||
"relay": {
|
||||
"default": "mdi:dip-switch"
|
||||
},
|
||||
"ir": {
|
||||
"default": "mdi:lightbulb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue