From 7f9bf69a0844ec461365109eb1eea5ec43efeec4 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Sun, 25 Aug 2024 04:22:19 -0700 Subject: [PATCH] Fix tile alarm modes when wrong code entered (#21779) --- .../lovelace/card-features/hui-alarm-modes-card-feature.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/card-features/hui-alarm-modes-card-feature.ts b/src/panels/lovelace/card-features/hui-alarm-modes-card-feature.ts index 425f6b90e1..5419290f1d 100644 --- a/src/panels/lovelace/card-features/hui-alarm-modes-card-feature.ts +++ b/src/panels/lovelace/card-features/hui-alarm-modes-card-feature.ts @@ -96,7 +96,12 @@ class HuiAlarmModeCardFeature } private async _setMode(mode: AlarmMode) { - setProtectedAlarmControlPanelMode(this, this.hass!, this.stateObj!, mode); + await setProtectedAlarmControlPanelMode( + this, + this.hass!, + this.stateObj!, + mode + ); } protected render(): TemplateResult | null {