Use IntFlag for EntityFeature (#81903)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user