1
0
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:
Erik Montnemery
2020-04-25 18:02:41 +02:00
committed by GitHub
parent 62bc02fdda
commit b30d117e7d
30 changed files with 82 additions and 57 deletions

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