mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Rename LockDevice to LockEntity (#34594)
This commit is contained in:
12
tests/components/lock/test_init.py
Normal file
12
tests/components/lock/test_init.py
Normal 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
|
||||
Reference in New Issue
Block a user