Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jun 1, 2023
1 parent 9cb99b8 commit e187ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/jablotron100/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ async def _arm_partially(self, state: StateType, code: str | None = None) -> Non
def _detect_supported_features(self) -> AlarmControlPanelEntityFeature:
partially_arming_mode = self._jablotron.partially_arming_mode()

if (partially_arming_mode == PartiallyArmingMode.NOT_SUPPORTED):
if partially_arming_mode == PartiallyArmingMode.NOT_SUPPORTED:
return AlarmControlPanelEntityFeature.ARM_AWAY

if (partially_arming_mode == PartiallyArmingMode.HOME_MODE):
if partially_arming_mode == PartiallyArmingMode.HOME_MODE:
return AlarmControlPanelEntityFeature.ARM_AWAY | AlarmControlPanelEntityFeature.ARM_HOME

return AlarmControlPanelEntityFeature.ARM_AWAY | AlarmControlPanelEntityFeature.ARM_NIGHT
Expand Down

0 comments on commit e187ec0

Please sign in to comment.