mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Rename music_assistant register_actions to async_setup_services (#186076)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user