mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Added armed_custom_bypass status. (#673)
Added icons for armed_night and armed_custom_bypass.
This commit is contained in:
parent
326fa00365
commit
2680a3f7e3
@ -112,6 +112,10 @@ class HaStateLabelBadge extends
|
||||
return 'mdi:nature';
|
||||
} else if (state.state === 'armed_home') {
|
||||
return 'mdi:home-variant';
|
||||
} else if (state.state === 'armed_night') {
|
||||
return 'mdi:weather-night';
|
||||
} else if (state.state === 'armed_custom_bypass') {
|
||||
return 'mdi:security-home';
|
||||
} else if (state.state === 'triggered') {
|
||||
return 'mdi:alert-circle';
|
||||
}
|
||||
|
@ -103,12 +103,16 @@ class MoreInfoAlarmControlPanel extends window.hassMixins.EventsMixin(Polymer.El
|
||||
this.codeInputEnabled = (
|
||||
newVal.state === 'armed_home' ||
|
||||
newVal.state === 'armed_away' ||
|
||||
newVal.state === 'armed_night' ||
|
||||
newVal.state === 'armed_custom_bypass' ||
|
||||
newVal.state === 'disarmed' ||
|
||||
newVal.state === 'pending' ||
|
||||
newVal.state === 'triggered');
|
||||
this.disarmButtonVisible = (
|
||||
newVal.state === 'armed_home' ||
|
||||
newVal.state === 'armed_away' ||
|
||||
newVal.state === 'armed_night' ||
|
||||
newVal.state === 'armed_custom_bypass' ||
|
||||
newVal.state === 'pending' ||
|
||||
newVal.state === 'triggered');
|
||||
this.armHomeButtonVisible = newVal.state === 'disarmed';
|
||||
|
@ -22,6 +22,7 @@
|
||||
"armed_home": "Armed home",
|
||||
"armed_away": "Armed away",
|
||||
"armed_night": "Armed night",
|
||||
"armed_custom_bypass": "Armed custom bypass",
|
||||
"pending": "Pending",
|
||||
"arming": "Arming",
|
||||
"disarming": "Disarming",
|
||||
@ -207,6 +208,7 @@
|
||||
"armed_home": "[%key:state_badge::alarm_control_panel::armed%]",
|
||||
"armed_away": "[%key:state_badge::alarm_control_panel::armed%]",
|
||||
"armed_night": "[%key:state_badge::alarm_control_panel::armed%]",
|
||||
"armed_custom_bypass": "[%key:state_badge::alarm_control_panel::armed%]",
|
||||
"pending": "Pend",
|
||||
"arming": "Arming",
|
||||
"disarming": "Disarm",
|
||||
|
Loading…
x
Reference in New Issue
Block a user