From c7f1f1bcd15809340a32f2efedfcb5ec4ae7bb89 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:01:24 +0200 Subject: [PATCH 1/4] Fix typo (#16341) * Fix typo * Fix typo --- src/translations/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translations/en.json b/src/translations/en.json index 7b359c878c..23506ac442 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2813,7 +2813,7 @@ "fetching_subscription": "Fetching subscription…", "tts": { "title": "Text-to-speech", - "info": "Bring personality to your home by having it speak to you by using our Text-to-Speech services. You can use this in automations and scripts by using the {service} service.", + "info": "Bring personality to your home by having it speak to you by using our text-to-speech services. You can use this in automations and scripts by using the {service} service.", "default_language": "Default language to use", "default_gender": "Default gender to use", "try": "Try", From 3b33195ff6e5feba692a767dfd2877d047fc6f83 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 28 Apr 2023 14:17:33 +0200 Subject: [PATCH 2/4] Add camera view support to image element (#16346) --- src/panels/lovelace/elements/hui-image-element.ts | 1 + src/panels/lovelace/elements/types.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/panels/lovelace/elements/hui-image-element.ts b/src/panels/lovelace/elements/hui-image-element.ts index 7bda549714..e54e23fb68 100644 --- a/src/panels/lovelace/elements/hui-image-element.ts +++ b/src/panels/lovelace/elements/hui-image-element.ts @@ -42,6 +42,7 @@ export class HuiImageElement extends LitElement implements LovelaceElement { .image=${this._config.image} .stateImage=${this._config.state_image} .cameraImage=${this._config.camera_image} + .cameraView=${this._config.camera_view} .filter=${this._config.filter} .stateFilter=${this._config.state_filter} .title=${computeTooltip(this.hass, this._config)} diff --git a/src/panels/lovelace/elements/types.ts b/src/panels/lovelace/elements/types.ts index 5b0d3f1014..55f71ba60a 100644 --- a/src/panels/lovelace/elements/types.ts +++ b/src/panels/lovelace/elements/types.ts @@ -1,6 +1,7 @@ import { ActionConfig } from "../../../data/lovelace"; import { HomeAssistant } from "../../../types"; import { Condition } from "../common/validate-condition"; +import { HuiImage } from "../components/hui-image"; interface LovelaceElementConfigBase { type: string; @@ -43,6 +44,7 @@ export interface ImageElementConfig extends LovelaceElementConfigBase { image?: string; state_image?: string; camera_image?: string; + camera_view?: HuiImage["cameraView"]; dark_mode_image?: string; dark_mode_filter?: string; filter?: string; From 6379713f57e263aa2989cf5341636a9a0c231448 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 28 Apr 2023 14:40:01 +0200 Subject: [PATCH 3/4] Fix drag and drop with sortablejs (#16343) --- src/html/_js_base.html.template | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/html/_js_base.html.template b/src/html/_js_base.html.template index ed3408e16e..e2fc752b4a 100644 --- a/src/html/_js_base.html.template +++ b/src/html/_js_base.html.template @@ -9,13 +9,6 @@ script.src = src; return script; } - window.Polymer = { - lazyRegister: true, - useNativeCSSProperties: true, - dom: "shadow", - suppressTemplateNotifications: true, - suppressBindingNotifications: true, - }; window.polymerSkipLoadingFontRoboto = true; if (!("customElements" in window && "content" in document.createElement("template"))) { From d1877595a525d599531f12e665092509d91d6bbf Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 28 Apr 2023 17:19:43 +0200 Subject: [PATCH 4/4] Bumped version to 20230428.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3cff776d8a..bb03d7594a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20230427.0" +version = "20230428.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"