Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the lawn mower integration."""
2 
3 from enum import IntFlag, StrEnum
4 
5 
6 class LawnMowerActivity(StrEnum):
7  """Activity state of lawn mower devices."""
8 
9  ERROR = "error"
10  """Device is in error state, needs assistance."""
11 
12  PAUSED = "paused"
13  """Paused during activity."""
14 
15  MOWING = "mowing"
16  """Device is mowing."""
17 
18  DOCKED = "docked"
19  """Device is docked."""
20 
21  RETURNING = "returning"
22  """Device is returning."""
23 
24 
25 class LawnMowerEntityFeature(IntFlag):
26  """Supported features of the lawn mower entity."""
27 
28  START_MOWING = 1
29  PAUSE = 2
30  DOCK = 4
31 
32 
33 DOMAIN = "lawn_mower"
34 
35 SERVICE_START_MOWING = "start_mowing"
36 SERVICE_PAUSE = "pause"
37 SERVICE_DOCK = "dock"