mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 09:17:10 +00:00
Fix location of current_play_mode (#50386)
This commit is contained in:
parent
51c78e0085
commit
6f9c21e1c0
@ -498,7 +498,9 @@ class SonosMediaPlayerEntity(SonosEntity, MediaPlayerEntity):
|
||||
if new_status == "TRANSITIONING":
|
||||
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._media_duration = None
|
||||
self._media_image_url = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user