Define public names of the valve integration (#186640)

This commit is contained in:
epenet
2026-10-15 14:23:26 +02:00
committed by GitHub
parent 3db1167937
commit e5caab384b
+29 -3
View File
@@ -4,7 +4,7 @@ from datetime import timedelta
import logging
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ( # noqa: F401
from homeassistant.const import (
SERVICE_CLOSE_VALVE,
SERVICE_OPEN_VALVE,
SERVICE_SET_VALVE_POSITION,
@@ -20,7 +20,7 @@ from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.typing import ConfigType
from .const import ( # noqa: F401
from .const import (
ATTR_POSITION,
DATA_COMPONENT,
DEVICE_CLASSES_SCHEMA,
@@ -30,7 +30,7 @@ from .const import ( # noqa: F401
ValveEntityStateAttribute,
ValveState,
)
from .entity import ( # noqa: F401
from .entity import (
ATTR_CURRENT_POSITION,
ATTR_IS_CLOSED,
ValveEntity,
@@ -45,6 +45,32 @@ PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA
PLATFORM_SCHEMA_BASE = cv.PLATFORM_SCHEMA_BASE
SCAN_INTERVAL = timedelta(seconds=15)
__all__ = [
"ATTR_CURRENT_POSITION",
"ATTR_IS_CLOSED",
"ATTR_POSITION",
"DEVICE_CLASSES_SCHEMA",
"DOMAIN",
"ENTITY_ID_FORMAT",
"PLATFORM_SCHEMA",
"PLATFORM_SCHEMA_BASE",
"SERVICE_CLOSE_VALVE",
"SERVICE_OPEN_VALVE",
"SERVICE_SET_VALVE_POSITION",
"SERVICE_STOP_VALVE",
"SERVICE_TOGGLE",
"STATE_CLOSED",
"STATE_CLOSING",
"STATE_OPEN",
"STATE_OPENING",
"ValveDeviceClass",
"ValveEntity",
"ValveEntityDescription",
"ValveEntityFeature",
"ValveEntityStateAttribute",
"ValveState",
]
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Track states and offer events for valves."""