Mark new gate device class as 2FA (#33541)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-04-02 22:02:59 +02:00
1 parent 4b2c45e668
commit 6afe6acb6c
2 files changed
+7 -2

No files matched your search

@@ -1247,7 +1247,11 @@ class OpenCloseTrait(_Trait):
"""
# 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
commands = [COMMAND_OPENCLOSE]
@@ -1532,7 +1532,8 @@ async def test_openclose_cover_no_position(hass):
@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):
"""Test OpenClose trait support for cover domain."""