Rename LockDevice to LockEntity (#34594)
This commit is contained in:
1 parent
62bc02fdda
commit
b30d117e7d
30 files changed
+82
-57
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user