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
@@ -0,0 +1,13 @@
|
||||
"""Tests for Alarm control panel."""
|
||||
from homeassistant.components import alarm_control_panel
|
||||
|
||||
|
||||
def test_deprecated_base_class(caplog):
|
||||
"""Test deprecated base class."""
|
||||
|
||||
class CustomAlarm(alarm_control_panel.AlarmControlPanel):
|
||||
def supported_features(self):
|
||||
pass
|
||||
|
||||
CustomAlarm()
|
||||
assert "AlarmControlPanel is deprecated, modify CustomAlarm" in caplog.text
|
||||
Reference in new issue
Block a user