Clean up SimpliSafe entity inheritance structure (#58063)

* Migrate SimpliSafe to new web-based authentication

* Ensure we're storing data correctly

* Re-organize SimpliSafe device structure

* Constants

* More work

* Code review
This commit is contained in:
Aaron Bach 2021-10-21 04:54:50 -06:00 committed by GitHub
parent c7ff6eb5ee
commit 2ff356393c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 72 deletions

View file

@ -80,7 +80,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
def __init__(self, simplisafe: SimpliSafe, system: SystemV2 | SystemV3) -> None:
"""Initialize the SimpliSafe alarm."""
super().__init__(simplisafe, system, "Alarm Control Panel")
super().__init__(simplisafe, system)
if code := self._simplisafe.entry.options.get(CONF_CODE):
if code.isdigit():