From 36ec122dcff207e4e469f7794bdc72aec255210e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 13 Oct 2026 08:15:01 +0200 Subject: [PATCH] Rename music_assistant register_actions to async_setup_services (#186076) --- homeassistant/components/music_assistant/__init__.py | 4 ++-- homeassistant/components/music_assistant/services.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,