Rename AlarmControlPanel to AlarmControlPanelEntity (#34590)
This commit is contained in:
1 parent
29bc93ea98
commit
6f7f5b4034
31 files changed
+75
-48
No files matched your search
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.alarm_control_panel import AlarmControlPanel
|
||||
from homeassistant.components.alarm_control_panel import AlarmControlPanelEntity
|
||||
from homeassistant.components.alarm_control_panel.const import (
|
||||
SUPPORT_ALARM_ARM_AWAY,
|
||||
SUPPORT_ALARM_ARM_HOME,
|
||||
@@ -51,13 +51,13 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
if service["stype"] != "security-system":
|
||||
return False
|
||||
info = {"aid": aid, "iid": service["iid"]}
|
||||
async_add_entities([HomeKitAlarmControlPanel(conn, info)], True)
|
||||
async_add_entities([HomeKitAlarmControlPanelEntity(conn, info)], True)
|
||||
return True
|
||||
|
||||
conn.add_listener(async_add_service)
|
||||
|
||||
|
||||
class HomeKitAlarmControlPanel(HomeKitEntity, AlarmControlPanel):
|
||||
class HomeKitAlarmControlPanelEntity(HomeKitEntity, AlarmControlPanelEntity):
|
||||
"""Representation of a Homekit Alarm Control Panel."""
|
||||
|
||||
def get_characteristic_types(self):
|
||||
|
||||
Reference in new issue
Block a user