Skip to content

Commit

Permalink
fix: Fix deprecated alarm_control_panel constants (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuffy2 authored Feb 11, 2024
1 parent a9ddead commit 1ed903b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ def supported_features(self) -> int:
# pylint: disable=import-outside-toplevel
try:
from homeassistant.components.alarm_control_panel import (
SUPPORT_ALARM_ARM_AWAY,
AlarmControlPanelEntityFeature,
)
except ImportError:
return 0
return SUPPORT_ALARM_ARM_AWAY
return AlarmControlPanelEntityFeature.ARM_AWAY

@property
def assumed_state(self) -> bool:
Expand Down

0 comments on commit 1ed903b

Please sign in to comment.