Skip to content

Commit

Permalink
🔨 Allows disarming alarm_control_panel when pending
Browse files Browse the repository at this point in the history
Closes #232
  • Loading branch information
timmo001 committed Apr 7, 2019
1 parent 4df240b commit 67ad372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Cards/Hass/Dialogs/AlarmPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class AlarmPanel extends React.PureComponent {
<Button onClick={() => this.handleClear()}>Clear</Button>
</Grid>
</Grid>
{state.startsWith('armed') ? (
{state.startsWith('armed') || state.startsWith('pending') ? (
<Grid container justify="center">
<Grid item>
<Button
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Cards/Hass/Hass.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ class Hass extends React.PureComponent {
editing
? false
: domain === 'binary_sensor' ||
state === 'unavailable' ||
state === 'pending'
state === 'unavailable'
}
onClick={() => {
if (editing) handleCardEdit(groupId, cardId, card);
Expand Down

0 comments on commit 67ad372

Please sign in to comment.