From cb502263fd78743717ae540ab2b91412bfb91c05 Mon Sep 17 00:00:00 2001 From: Markus Jacobsen Date: Fri, 31 May 2024 04:23:43 +0200 Subject: [PATCH] Bang & Olufsen fix straggler from previous PR (#118488) * Fix callback straggler from previous PR * Update homeassistant/components/bang_olufsen/media_player.py --------- Co-authored-by: Paulus Schoutsen --- homeassistant/components/bang_olufsen/media_player.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/bang_olufsen/media_player.py b/homeassistant/components/bang_olufsen/media_player.py index 725afab88b9..9d4cd81f5cb 100644 --- a/homeassistant/components/bang_olufsen/media_player.py +++ b/homeassistant/components/bang_olufsen/media_player.py @@ -176,7 +176,7 @@ class BangOlufsenMediaPlayer(BangOlufsenEntity, MediaPlayerEntity): async_dispatcher_connect( self.hass, f"{self._unique_id}_{WebsocketNotification.REMOTE_MENU_CHANGED}", - self._update_sources, + self._async_update_sources, ) ) self.async_on_remove( @@ -235,12 +235,12 @@ class BangOlufsenMediaPlayer(BangOlufsenEntity, MediaPlayerEntity): self._media_image = get_highest_resolution_artwork(self._playback_metadata) # If the device has been updated with new sources, then the API will fail here. - await self._update_sources() + await self._async_update_sources() # Set the static entity attributes that needed more information. self._attr_source_list = list(self._sources.values()) - async def _update_sources(self) -> None: + async def _async_update_sources(self) -> None: """Get sources for the specific product.""" # Audio sources