From 3d72f40aea24c09aae26959ba49958f674028464 Mon Sep 17 00:00:00 2001 From: dougiteixeira <31328123+dougiteixeira@users.noreply.github.com> Date: Sat, 24 Feb 2024 15:23:07 -0300 Subject: [PATCH] Add strings to the options attribute (#111302) Add strings to the message attribute --- homeassistant/components/moon/strings.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/homeassistant/components/moon/strings.json b/homeassistant/components/moon/strings.json index d4d59f83674..22b430731e0 100644 --- a/homeassistant/components/moon/strings.json +++ b/homeassistant/components/moon/strings.json @@ -23,6 +23,20 @@ "waning_gibbous": "Waning gibbous", "waxing_crescent": "Waxing crescent", "waxing_gibbous": "Waxing gibbous" + }, + "state_attributes": { + "options": { + "state": { + "first_quarter": "[%key:component::moon::entity::sensor::phase::state::first_quarter%]", + "full_moon": "[%key:component::moon::entity::sensor::phase::state::full_moon%]", + "last_quarter": "[%key:component::moon::entity::sensor::phase::state::last_quarter%]", + "new_moon": "[%key:component::moon::entity::sensor::phase::state::new_moon%]", + "waning_crescent": "[%key:component::moon::entity::sensor::phase::state::waning_crescent%]", + "waning_gibbous": "[%key:component::moon::entity::sensor::phase::state::waning_gibbous%]", + "waxing_crescent": "[%key:component::moon::entity::sensor::phase::state::waxing_crescent%]", + "waxing_gibbous": "[%key:component::moon::entity::sensor::phase::state::waxing_gibbous%]" + } + } } } }