Skip to content

Commit

Permalink
fix: alarm_state instead of state for AlarmControlPanelEntities #137
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Dec 12, 2024
1 parent abc3bdb commit e3ee051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hikvision_axpro/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def name(self):
# "HikvisionAxPro"

@property
def state(self):
def alarm_state(self):
"""Return the state of the device."""
return self.coordinator.state

Expand Down Expand Up @@ -178,7 +178,7 @@ def name(self):
# "HikvisionAxPro"

@property
def state(self):
def alarm_state(self):
"""Return the state of the device."""
if self.sys.alarm:
return AlarmControlPanelState.TRIGGERED
Expand Down

0 comments on commit e3ee051

Please # to comment.