mirror of
https://github.com/home-assistant/core.git
synced 2026-09-23 10:14:41 +01:00
32 lines
608 B
Python
32 lines
608 B
Python
"""Constants for the lock entity platform."""
|
|
|
|
from enum import IntFlag, StrEnum
|
|
from typing import Final
|
|
|
|
DOMAIN: Final = "lock"
|
|
|
|
|
|
class LockEntityStateAttribute(StrEnum):
|
|
"""State attributes for lock entities."""
|
|
|
|
CHANGED_BY = "changed_by"
|
|
CODE_FORMAT = "code_format"
|
|
|
|
|
|
class LockState(StrEnum):
|
|
"""State of lock entities."""
|
|
|
|
JAMMED = "jammed"
|
|
OPENING = "opening"
|
|
LOCKING = "locking"
|
|
OPEN = "open"
|
|
UNLOCKING = "unlocking"
|
|
LOCKED = "locked"
|
|
UNLOCKED = "unlocked"
|
|
|
|
|
|
class LockEntityFeature(IntFlag):
|
|
"""Supported features of the lock entity."""
|
|
|
|
OPEN = 1
|