Mark new gate device class as 2FA (#33541)
This commit is contained in:
1 parent
060c6c89e3
commit
8f233b822f
2 files changed
+7
-2
No files matched your search
@@ -1247,7 +1247,11 @@ class OpenCloseTrait(_Trait):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Cover device classes that require 2FA
|
# Cover device classes that require 2FA
|
||||||
COVER_2FA = (cover.DEVICE_CLASS_DOOR, cover.DEVICE_CLASS_GARAGE)
|
COVER_2FA = (
|
||||||
|
cover.DEVICE_CLASS_DOOR,
|
||||||
|
cover.DEVICE_CLASS_GARAGE,
|
||||||
|
cover.DEVICE_CLASS_GATE,
|
||||||
|
)
|
||||||
|
|
||||||
name = TRAIT_OPENCLOSE
|
name = TRAIT_OPENCLOSE
|
||||||
commands = [COMMAND_OPENCLOSE]
|
commands = [COMMAND_OPENCLOSE]
|
||||||
|
|||||||
@@ -1532,7 +1532,8 @@ async def test_openclose_cover_no_position(hass):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"device_class", (cover.DEVICE_CLASS_DOOR, cover.DEVICE_CLASS_GARAGE)
|
"device_class",
|
||||||
|
(cover.DEVICE_CLASS_DOOR, cover.DEVICE_CLASS_GARAGE, cover.DEVICE_CLASS_GATE),
|
||||||
)
|
)
|
||||||
async def test_openclose_cover_secure(hass, device_class):
|
async def test_openclose_cover_secure(hass, device_class):
|
||||||
"""Test OpenClose trait support for cover domain."""
|
"""Test OpenClose trait support for cover domain."""
|
||||||
|
|||||||
Reference in new issue
Block a user