Use IntFlag for EntityFeature (#81903)

This commit is contained in:
epenet
2022-11-16 12:43:17 +01:00
committed by GitHub
parent e01115fd1f
commit a91abebea8
14 changed files with 28 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
"""Provides the constants needed for component."""
from enum import IntEnum
from enum import IntFlag
from typing import Final
from homeassistant.backports.enum import StrEnum
@@ -23,7 +23,7 @@ FORMAT_TEXT: Final = "text"
FORMAT_NUMBER: Final = "number"
class AlarmControlPanelEntityFeature(IntEnum):
class AlarmControlPanelEntityFeature(IntFlag):
"""Supported features of the alarm control panel entity."""
ARM_HOME = 1