From 721eebf36726650b4d64ab8d79b5b74d10228b4f Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 7 Jun 2024 04:02:58 -0700 Subject: [PATCH] Add floor selector to script fields (#21016) --- src/components/ha-selector/ha-selector-selector.ts | 6 ++++++ src/translations/en.json | 1 + 2 files changed, 7 insertions(+) diff --git a/src/components/ha-selector/ha-selector-selector.ts b/src/components/ha-selector/ha-selector-selector.ts index 7f944d46ad..831fe05f73 100644 --- a/src/components/ha-selector/ha-selector-selector.ts +++ b/src/components/ha-selector/ha-selector-selector.ts @@ -64,6 +64,12 @@ const SELECTOR_SCHEMAS = { selector: { boolean: {} }, }, ] as const, + floor: [ + { + name: "multiple", + selector: { boolean: {} }, + }, + ] as const, icon: [] as const, location: [] as const, media: [] as const, diff --git a/src/translations/en.json b/src/translations/en.json index f177a46277..6147da19d2 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -401,6 +401,7 @@ "device": "Device", "duration": "Duration", "entity": "Entity", + "floor": "[%key:ui::components::floor-picker::floor%]", "icon": "Icon", "location": "Location", "media": "Media",