From 9436645648212749765465cd0054bb3d5d42b43c Mon Sep 17 00:00:00 2001 From: Teemu R Date: Fri, 1 May 2020 19:43:30 +0200 Subject: [PATCH] Fix songpal on devices where source!=uri (#34699) --- homeassistant/components/songpal/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/songpal/media_player.py b/homeassistant/components/songpal/media_player.py index e2a9d9c5d57..55d8f0133a9 100644 --- a/homeassistant/components/songpal/media_player.py +++ b/homeassistant/components/songpal/media_player.py @@ -164,7 +164,7 @@ class SongpalDevice(MediaPlayerEntity): async def _source_changed(content: ContentChange): _LOGGER.debug("Source changed: %s", content) if content.is_input: - self._active_source = self._sources[content.source] + self._active_source = self._sources[content.uri] _LOGGER.debug("New active source: %s", self._active_source) self.async_write_ha_state() else: