From c099ec19f22a19205f1268e3bd3e8b8887b1965e Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Tue, 19 Sep 2023 18:30:18 +0000 Subject: [PATCH] Add missing translations for Shelly event type states (#100608) Add missing translations for event type --- homeassistant/components/shelly/event.py | 1 + homeassistant/components/shelly/strings.json | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/homeassistant/components/shelly/event.py b/homeassistant/components/shelly/event.py index e37b4cdcdac..2abedf3cf9a 100644 --- a/homeassistant/components/shelly/event.py +++ b/homeassistant/components/shelly/event.py @@ -37,6 +37,7 @@ class ShellyEventDescription(EventEntityDescription): RPC_EVENT: Final = ShellyEventDescription( key="input", + translation_key="input", device_class=EventDeviceClass.BUTTON, event_types=list(RPC_INPUTS_EVENTS_TYPES), removal_condition=lambda config, status, key: not is_rpc_momentary_input( diff --git a/homeassistant/components/shelly/strings.json b/homeassistant/components/shelly/strings.json index dcdfa6d7987..d2e72ee81da 100644 --- a/homeassistant/components/shelly/strings.json +++ b/homeassistant/components/shelly/strings.json @@ -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": { "operation": { "state": {