mirror of
https://github.com/home-assistant/core.git
synced 2026-06-03 14:14:40 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
26 lines
671 B
Python
26 lines
671 B
Python
"""Ecovacs services."""
|
|
|
|
from homeassistant.components.vacuum import DOMAIN as VACUUM_DOMAIN
|
|
from homeassistant.core import HomeAssistant, SupportsResponse, callback
|
|
from homeassistant.helpers import service
|
|
|
|
from .const import DOMAIN
|
|
|
|
SERVICE_RAW_GET_POSITIONS = "raw_get_positions"
|
|
|
|
|
|
@callback
|
|
def async_setup_services(hass: HomeAssistant) -> None:
|
|
"""Set up services."""
|
|
|
|
# Vacuum Services
|
|
service.async_register_platform_entity_service(
|
|
hass,
|
|
DOMAIN,
|
|
SERVICE_RAW_GET_POSITIONS,
|
|
entity_domain=VACUUM_DOMAIN,
|
|
schema=None,
|
|
func="async_raw_get_positions",
|
|
supports_response=SupportsResponse.ONLY,
|
|
)
|