Reorganize SimpliSafe services (#58722)
This commit is contained in:
parent
d9c567e205
commit
e641214c60
4 changed files with 164 additions and 111 deletions
|
@ -5,7 +5,6 @@ from typing import TYPE_CHECKING
|
|||
|
||||
from simplipy.errors import SimplipyError
|
||||
from simplipy.system import SystemStates
|
||||
from simplipy.system.v2 import SystemV2
|
||||
from simplipy.system.v3 import SystemV3
|
||||
from simplipy.websocket import (
|
||||
EVENT_ALARM_CANCELED,
|
||||
|
@ -58,6 +57,7 @@ from .const import (
|
|||
DOMAIN,
|
||||
LOGGER,
|
||||
)
|
||||
from .typing import SystemType
|
||||
|
||||
ATTR_BATTERY_BACKUP_POWER_LEVEL = "battery_backup_power_level"
|
||||
ATTR_GSM_STRENGTH = "gsm_strength"
|
||||
|
@ -119,7 +119,7 @@ async def async_setup_entry(
|
|||
class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
|
||||
"""Representation of a SimpliSafe alarm."""
|
||||
|
||||
def __init__(self, simplisafe: SimpliSafe, system: SystemV2 | SystemV3) -> None:
|
||||
def __init__(self, simplisafe: SimpliSafe, system: SystemType) -> None:
|
||||
"""Initialize the SimpliSafe alarm."""
|
||||
super().__init__(
|
||||
simplisafe,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue