Skip to content

Commit

Permalink
Fix songpal on devices where source!=uri (home-assistant#34699)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti authored May 1, 2020
1 parent a65e656 commit 9436645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/songpal/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def _volume_changed(volume: VolumeChange):
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:
Expand Down

0 comments on commit 9436645

Please sign in to comment.