1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-02 21:54:27 +01:00
Files
core/homeassistant/components/valve/const.py
T
Paulus Schoutsen d7568a8f16 Move valve entity classes to entity module (#170524)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-13 23:39:05 +02:00

32 lines
572 B
Python

"""Constants for the Valve entity platform."""
from enum import IntFlag, StrEnum
DOMAIN = "valve"
class ValveDeviceClass(StrEnum):
"""Device class for valve."""
# Refer to the valve dev docs for device class descriptions
WATER = "water"
GAS = "gas"
class ValveEntityFeature(IntFlag):
"""Supported features of the valve entity."""
OPEN = 1
CLOSE = 2
SET_POSITION = 4
STOP = 8
class ValveState(StrEnum):
"""State of Valve entities."""
OPENING = "opening"
CLOSING = "closing"
CLOSED = "closed"
OPEN = "open"