From a4051121421bab0ec3784e7019882674a5b0f879 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 27 Mar 2023 19:59:57 +0200 Subject: [PATCH] Add state translations for Script entities (#90354) --- homeassistant/components/script/strings.json | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/homeassistant/components/script/strings.json b/homeassistant/components/script/strings.json index c78e4265cbd..b9624f16a31 100644 --- a/homeassistant/components/script/strings.json +++ b/homeassistant/components/script/strings.json @@ -6,6 +6,29 @@ "state": { "off": "[%key:common::state::off%]", "on": "[%key:common::state::on%]" + }, + "state_attributes": { + "current": { + "name": "[%key:component::automation::entity_component::_::state_attributes::current::name%]" + }, + "last_action": { + "name": "Last action" + }, + "last_triggered": { + "name": "[%key:component::automation::entity_component::_::state_attributes::last_triggered::name%]" + }, + "max": { + "name": "Max running scripts" + }, + "mode": { + "name": "[%key:component::automation::entity_component::_::state_attributes::mode::name%]", + "state": { + "parallel": "[%key:component::automation::entity_component::_::state_attributes::mode::state::parallel%]", + "queued": "[%key:component::automation::entity_component::_::state_attributes::mode::state::queued%]", + "restart": "[%key:component::automation::entity_component::_::state_attributes::mode::state::restart%]", + "single": "[%key:component::automation::entity_component::_::state_attributes::mode::state::single%]" + } + } } } }