Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Apr 16, 2024
1 parent 293acfb commit 57868d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 57868d5

Please sign in to comment.