Rename music_assistant register_actions to async_setup_services (#186076)

This commit is contained in:
epenet
2026-10-13 08:15:01 +02:00
committed by GitHub
parent 8a51972f91
commit 36ec122dcf
2 changed files with 3 additions and 3 deletions
@@ -40,7 +40,7 @@ from homeassistant.helpers.issue_registry import (
from .const import ATTR_CONF_EXPOSE_PLAYER_TO_HA, DASHBOARD_ID_PREFIX, DOMAIN, LOGGER
from .helpers import get_music_assistant_client
from .services import register_actions
from .services import async_setup_services
if TYPE_CHECKING:
from music_assistant_models.event import MassEvent
@@ -77,7 +77,7 @@ class MusicAssistantEntryData:
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Music Assistant component."""
register_actions(hass)
async_setup_services(hass)
return True
@@ -93,7 +93,7 @@ PLAYER_ENTITY_DEVICE_CLASSES = [MediaPlayerDeviceClass.SPEAKER]
@callback
def register_actions(hass: HomeAssistant) -> None:
def async_setup_services(hass: HomeAssistant) -> None:
"""Register custom actions."""
hass.services.async_register(
DOMAIN,