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" 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"))) { 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; 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",