Adjust alarm_control_panel
This commit is contained in:
parent
a43b5dc972
commit
786cf200d1
2 changed files with 8 additions and 3 deletions
|
@ -80,11 +80,10 @@ async def async_setup_entry(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class DeconzAlarmControlPanel(DeconzDevice, AlarmControlPanelEntity):
|
class DeconzAlarmControlPanel(DeconzDevice[AncillaryControl], AlarmControlPanelEntity):
|
||||||
"""Representation of a deCONZ alarm control panel."""
|
"""Representation of a deCONZ alarm control panel."""
|
||||||
|
|
||||||
TYPE = DOMAIN
|
TYPE = DOMAIN
|
||||||
_device: AncillaryControl
|
|
||||||
|
|
||||||
_attr_code_format = CodeFormat.NUMBER
|
_attr_code_format = CodeFormat.NUMBER
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
|
|
|
@ -8,6 +8,7 @@ from pydeconz.models.group import Group as DeconzGroup
|
||||||
from pydeconz.models.light import LightBase as DeconzLight
|
from pydeconz.models.light import LightBase as DeconzLight
|
||||||
from pydeconz.models.scene import Scene as PydeconzScene
|
from pydeconz.models.scene import Scene as PydeconzScene
|
||||||
from pydeconz.models.sensor import SensorBase as DeconzSensor
|
from pydeconz.models.sensor import SensorBase as DeconzSensor
|
||||||
|
from pydeconz.models.sensor.ancillary_control import AncillaryControl
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.device_registry import CONNECTION_ZIGBEE
|
from homeassistant.helpers.device_registry import CONNECTION_ZIGBEE
|
||||||
|
@ -18,7 +19,12 @@ from .const import DOMAIN as DECONZ_DOMAIN
|
||||||
from .gateway import DeconzGateway
|
from .gateway import DeconzGateway
|
||||||
|
|
||||||
_DeviceTypeT = TypeVar(
|
_DeviceTypeT = TypeVar(
|
||||||
"_DeviceTypeT", DeconzGroup, DeconzLight, DeconzSensor, PydeconzScene
|
"_DeviceTypeT",
|
||||||
|
DeconzGroup,
|
||||||
|
DeconzLight,
|
||||||
|
DeconzSensor,
|
||||||
|
PydeconzScene,
|
||||||
|
AncillaryControl,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue