python
This commit is contained in:
26
custom_components/yandex_smart_home/backports.py
Normal file
26
custom_components/yandex_smart_home/backports.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""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"
|
||||
Reference in New Issue
Block a user