diff --git a/pyproject.toml b/pyproject.toml index 9a413e0d22..38b0d8ad8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20220901.0" +version = "20220902.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md" diff --git a/src/components/ha-icon-overflow-menu.ts b/src/components/ha-icon-overflow-menu.ts index 4f81550e30..6ff579c2a8 100644 --- a/src/components/ha-icon-overflow-menu.ts +++ b/src/components/ha-icon-overflow-menu.ts @@ -3,6 +3,8 @@ import { mdiDotsVertical } from "@mdi/js"; import "@polymer/paper-tooltip/paper-tooltip"; import { css, html, LitElement, TemplateResult } from "lit"; import { customElement, property } from "lit/decorators"; +import { classMap } from "lit/directives/class-map"; +import { haStyle } from "../resources/styles"; import { HomeAssistant } from "../types"; import "./ha-button-menu"; import "./ha-icon-button"; @@ -16,6 +18,7 @@ export interface IconOverflowMenuItem { disabled?: boolean; tooltip?: string; onClick: CallableFunction; + warning?: boolean; } @customElement("ha-icon-overflow-menu") @@ -49,9 +52,13 @@ export class HaIconOverflowMenu extends LitElement { graphic="icon" .disabled=${item.disabled} @click=${item.action} + class=${classMap({ warning: Boolean(item.warning) })} >
+ ${this.hass.localize("ui.panel.config.automation.editor.introduction")} +
+