Rename AlarmControlPanel to AlarmControlPanelEntity (#34590)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-25 18:05:28 +02:00
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