mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 04:03:49 +01:00
Deprecate deprecated lock constants (#106113)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.lock import SUPPORT_OPEN, LockEntity
|
||||
from homeassistant.components.lock import LockEntity, LockEntityFeature
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
@@ -20,7 +20,7 @@ def init(empty=False):
|
||||
"support_open": MockLock(
|
||||
name="Support open Lock",
|
||||
is_locked=True,
|
||||
supported_features=SUPPORT_OPEN,
|
||||
supported_features=LockEntityFeature.OPEN,
|
||||
unique_id="unique_support_open",
|
||||
),
|
||||
"no_support_open": MockLock(
|
||||
|
||||
Reference in New Issue
Block a user