mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix songpal on devices where source!=uri (#34699)
This commit is contained in:
parent
a65e656c03
commit
9436645648
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user