diff --git a/homeassistant/components/music_assistant/__init__.py b/homeassistant/components/music_assistant/__init__.py index 3bc236db4fcc..aaab8cac910f 100644 --- a/homeassistant/components/music_assistant/__init__.py +++ b/homeassistant/components/music_assistant/__init__.py @@ -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 diff --git a/homeassistant/components/music_assistant/services.py b/homeassistant/components/music_assistant/services.py index 468ede143d84..0d3269533026 100644 --- a/homeassistant/components/music_assistant/services.py +++ b/homeassistant/components/music_assistant/services.py @@ -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,