mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Add missing translations for Shelly event type states (#100608)
Add missing translations for event type
This commit is contained in:
parent
0eca433004
commit
c099ec19f2
@ -37,6 +37,7 @@ class ShellyEventDescription(EventEntityDescription):
|
|||||||
|
|
||||||
RPC_EVENT: Final = ShellyEventDescription(
|
RPC_EVENT: Final = ShellyEventDescription(
|
||||||
key="input",
|
key="input",
|
||||||
|
translation_key="input",
|
||||||
device_class=EventDeviceClass.BUTTON,
|
device_class=EventDeviceClass.BUTTON,
|
||||||
event_types=list(RPC_INPUTS_EVENTS_TYPES),
|
event_types=list(RPC_INPUTS_EVENTS_TYPES),
|
||||||
removal_condition=lambda config, status, key: not is_rpc_momentary_input(
|
removal_condition=lambda config, status, key: not is_rpc_momentary_input(
|
||||||
|
@ -98,6 +98,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"event": {
|
||||||
|
"input": {
|
||||||
|
"state_attributes": {
|
||||||
|
"event_type": {
|
||||||
|
"state": {
|
||||||
|
"btn_down": "Button down",
|
||||||
|
"btn_up": "Button up",
|
||||||
|
"double_push": "Double push",
|
||||||
|
"long_push": "Long push",
|
||||||
|
"single_push": "Single push",
|
||||||
|
"triple_push": "Triple push"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
"operation": {
|
"operation": {
|
||||||
"state": {
|
"state": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user