Adjust type hints in component alarm methods (#74092)

* Adjust type hints in component alarm methods

* Undo related change

* Undo related change
This commit is contained in:
epenet 2022-06-28 10:00:23 +02:00 committed by GitHub
parent 800bae68a8
commit 8e1ec07f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 125 additions and 107 deletions

View file

@ -69,14 +69,14 @@ class LupusecAlarm(LupusecDevice, AlarmControlPanelEntity):
state = None
return state
def alarm_arm_away(self, code=None):
def alarm_arm_away(self, code: str | None = None) -> None:
"""Send arm away command."""
self._device.set_away()
def alarm_disarm(self, code=None):
def alarm_disarm(self, code: str | None = None) -> None:
"""Send disarm command."""
self._device.set_standby()
def alarm_arm_home(self, code=None):
def alarm_arm_home(self, code: str | None = None) -> None:
"""Send arm home command."""
self._device.set_home()