Rename LockDevice to LockEntity (#34594)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-25 18:02:41 +02:00
1 parent 62bc02fdda
commit b30d117e7d
30 files changed
+82 -57

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
"""The tests for Lock."""
from homeassistant.components import lock
def test_deprecated_base_class(caplog):
"""Test deprecated base class."""
class CustomLock(lock.LockDevice):
pass
CustomLock()
assert "LockDevice is deprecated, modify CustomLock" in caplog.text