27 lines
530 B
Python
27 lines
530 B
Python
"""Backports from newer Home Assistant versions."""
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class LockState(StrEnum):
|
|
"""State of lock entities (2024.10+)."""
|
|
|
|
JAMMED = "jammed"
|
|
OPENING = "opening"
|
|
LOCKING = "locking"
|
|
OPEN = "open"
|
|
UNLOCKING = "unlocking"
|
|
LOCKED = "locked"
|
|
UNLOCKED = "unlocked"
|
|
|
|
|
|
class VacuumActivity(StrEnum):
|
|
"""Vacuum activity states (2025.1+)."""
|
|
|
|
CLEANING = "cleaning"
|
|
DOCKED = "docked"
|
|
IDLE = "idle"
|
|
PAUSED = "paused"
|
|
RETURNING = "returning"
|
|
ERROR = "error"
|