mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +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):
|
async def _source_changed(content: ContentChange):
|
||||||
_LOGGER.debug("Source changed: %s", content)
|
_LOGGER.debug("Source changed: %s", content)
|
||||||
if content.is_input:
|
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)
|
_LOGGER.debug("New active source: %s", self._active_source)
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user