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 @@ Provide a mock alarm_control_panel platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
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,
|
||||
@@ -52,7 +52,7 @@ async def async_setup_platform(
|
||||
async_add_entities_callback(list(ENTITIES.values()))
|
||||
|
||||
|
||||
class MockAlarm(MockEntity, AlarmControlPanel):
|
||||
class MockAlarm(MockEntity, AlarmControlPanelEntity):
|
||||
"""Mock Alarm control panel class."""
|
||||
|
||||
def __init__(self, **values):
|
||||
|
||||
Reference in new issue
Block a user