From 5657fcd1e8c89228525c32bcc4299b5169532244 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 17 Mar 2023 18:52:19 +0100 Subject: [PATCH] Add state attribute translations for Number (#89881) --- homeassistant/components/number/strings.json | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/number/strings.json b/homeassistant/components/number/strings.json index d265b84c740..46db471305c 100644 --- a/homeassistant/components/number/strings.json +++ b/homeassistant/components/number/strings.json @@ -7,7 +7,26 @@ }, "entity_component": { "_": { - "name": "[%key:component::number::title%]" + "name": "[%key:component::number::title%]", + "state_attributes": { + "max": { + "name": "Maximum" + }, + "min": { + "name": "Minimum" + }, + "mode": { + "name": "Mode", + "state": { + "auto": "Automatic", + "box": "Box", + "slider": "Slider" + } + }, + "step": { + "name": "Step" + } + } }, "apparent_power": { "name": "[%key:component::sensor::entity_component::apparent_power::name%]"