1
0
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:
Robert Resch
2023-12-20 18:07:17 +01:00
committed by GitHub
parent 9dd1b9e268
commit 491a50a2f1
3 changed files with 24 additions and 3 deletions

View File

@@ -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(