mirror of
https://github.com/home-assistant/core.git
synced 2026-10-01 09:47:53 +01:00
16 lines
391 B
Python
16 lines
391 B
Python
"""Services for the Button integration."""
|
|
|
|
from homeassistant.core import HomeAssistant, callback
|
|
|
|
from .const import DATA_COMPONENT, SERVICE_PRESS
|
|
|
|
|
|
@callback
|
|
def async_setup_services(hass: HomeAssistant) -> None:
|
|
"""Register the button services."""
|
|
hass.data[DATA_COMPONENT].async_register_entity_service(
|
|
SERVICE_PRESS,
|
|
None,
|
|
"_async_press_action",
|
|
)
|