mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix songpal on devices where source!=uri (#34699)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user