HA frontend change for alarm panel vacation mode (#8326)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
posixx 2021-07-08 16:21:09 +02:00 committed by GitHub
parent 8f85132d48
commit df1ca1fd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -10,6 +10,7 @@ export const callAlarmAction = (
| "arm_away" | "arm_away"
| "arm_home" | "arm_home"
| "arm_night" | "arm_night"
| "arm_vacation"
| "arm_custom_bypass" | "arm_custom_bypass"
| "disarm", | "disarm",
code?: string code?: string

View File

@ -28,7 +28,8 @@ const ICONS = {
armed_away: "hass:shield-lock", armed_away: "hass:shield-lock",
armed_custom_bypass: "hass:security", armed_custom_bypass: "hass:security",
armed_home: "hass:shield-home", armed_home: "hass:shield-home",
armed_night: "hass:shield-home", armed_night: "hass:shield-sun",
armed_vacation: "hass:shield-lock",
disarmed: "hass:shield-check", disarmed: "hass:shield-check",
pending: "hass:shield-outline", pending: "hass:shield-outline",
triggered: "hass:bell-ring", triggered: "hass:bell-ring",

View File

@ -58,7 +58,13 @@ export class HuiAlarmPanelCardEditor
return html``; return html``;
} }
const states = ["arm_home", "arm_away", "arm_night", "arm_custom_bypass"]; const states = [
"arm_home",
"arm_away",
"arm_night",
"arm_vacation",
"arm_custom_bypass",
];
return html` return html`
<div class="card-config"> <div class="card-config">