From 57868d5e0024ca2c830d6ae656e024f9a65d0b0d Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 16 Apr 2024 19:28:15 +0000 Subject: [PATCH] Fix comments --- .../ha-state-control-alarm_control_panel-modes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/state-control/alarm_control_panel/ha-state-control-alarm_control_panel-modes.ts b/src/state-control/alarm_control_panel/ha-state-control-alarm_control_panel-modes.ts index 911de1033c4b..be5408ce0c52 100644 --- a/src/state-control/alarm_control_panel/ha-state-control-alarm_control_panel-modes.ts +++ b/src/state-control/alarm_control_panel/ha-state-control-alarm_control_panel-modes.ts @@ -57,13 +57,13 @@ export class HaStateControlAlarmControlPanelModes extends LitElement { ) { const disarm = mode === "disarmed"; - const AlarmControlPanelRegistryEntry = + const alarmControlPanelRegistryEntry = await getExtendedEntityRegistryEntry( this.hass, this.stateObj.entity_id ).catch(() => undefined); const defaultCode = - AlarmControlPanelRegistryEntry?.options?.alarm_control_panel + alarmControlPanelRegistryEntry?.options?.alarm_control_panel ?.default_code; if (!defaultCode) { @@ -73,7 +73,7 @@ export class HaStateControlAlarmControlPanelModes extends LitElement { `ui.card.alarm_control_panel.${disarm ? "disarm" : "arm"}` ), submitText: this.hass!.localize( - `ui.card.alarm_control_panel.${disarm ? "disarmn" : "arm"}` + `ui.card.alarm_control_panel.${disarm ? "disarm" : "arm"}` ), }); if (response == null) {