Skip to content

Commit

Permalink
Bang & Olufsen fix straggler from previous PR (home-assistant#118488)
Browse files Browse the repository at this point in the history
* Fix callback straggler from previous PR

* Update homeassistant/components/bang_olufsen/media_player.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
  • Loading branch information
mj23000 and balloob authored May 31, 2024
1 parent 2b4e921 commit cb50226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/bang_olufsen/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async def async_added_to_hass(self) -> None:
async_dispatcher_connect(
self.hass,
f"{self._unique_id}_{WebsocketNotification.REMOTE_MENU_CHANGED}",
self._update_sources,
self._async_update_sources,
)
)
self.async_on_remove(
Expand Down Expand Up @@ -235,12 +235,12 @@ async def _initialize(self) -> None:
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
Expand Down

0 comments on commit cb50226

Please sign in to comment.