mirror of
https://github.com/home-assistant/core.git
synced 2026-09-06 05:22:44 +01:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
24 lines
566 B
Python
24 lines
566 B
Python
"""Collection image services."""
|
|
|
|
from homeassistant.components.image import DOMAIN as IMAGE_DOMAIN
|
|
from homeassistant.core import HomeAssistant, callback
|
|
from homeassistant.helpers import service
|
|
|
|
from .const import DOMAIN
|
|
|
|
SERVICE_SHUFFLE = "shuffle"
|
|
|
|
|
|
@callback
|
|
def async_setup_services(hass: HomeAssistant) -> None:
|
|
"""Register Collection image services."""
|
|
|
|
service.async_register_platform_entity_service(
|
|
hass,
|
|
DOMAIN,
|
|
SERVICE_SHUFFLE,
|
|
entity_domain=IMAGE_DOMAIN,
|
|
schema={},
|
|
func="get_next_image",
|
|
)
|