hass-core/homeassistant/components/lawn_mower/const.py
Michael Arthur 3a92899081
Add LawnMowerActivity.RETURNING to Lawn Mower (#124261)
* Add returning activity state

* update tests

* update tests

* set can return to returning state

* update MQTT tests

* update mqtt back to docked

* fix up other tests that I broke again

* re-add mower_can_dock
2024-08-22 19:13:54 +02:00

37 lines
715 B
Python

"""Constants for the lawn mower integration."""
from enum import IntFlag, StrEnum
class LawnMowerActivity(StrEnum):
"""Activity state of lawn mower devices."""
ERROR = "error"
"""Device is in error state, needs assistance."""
PAUSED = "paused"
"""Paused during activity."""
MOWING = "mowing"
"""Device is mowing."""
DOCKED = "docked"
"""Device is docked."""
RETURNING = "returning"
"""Device is returning."""
class LawnMowerEntityFeature(IntFlag):
"""Supported features of the lawn mower entity."""
START_MOWING = 1
PAUSE = 2
DOCK = 4
DOMAIN = "lawn_mower"
SERVICE_START_MOWING = "start_mowing"
SERVICE_PAUSE = "pause"
SERVICE_DOCK = "dock"