mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Fix location of current_play_mode (#50386)
This commit is contained in:
parent
3a192896df
commit
0cdb8ad892
@ -500,7 +500,9 @@ class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
|
|||||||
if new_status == "TRANSITIONING":
|
if new_status == "TRANSITIONING":
|
||||||
return
|
return
|
||||||
|
|
||||||
self._play_mode = event.current_play_mode if event else self.soco.play_mode
|
self._play_mode = (
|
||||||
|
variables["current_play_mode"] if variables else self.soco.play_mode
|
||||||
|
)
|
||||||
self._uri = None
|
self._uri = None
|
||||||
self._media_duration = None
|
self._media_duration = None
|
||||||
self._media_image_url = None
|
self._media_image_url = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user