Fix location of current_play_mode (#50386)

pull/50411/head
jjlawren 2021-05-10 07:49:11 -05:00 committed by GitHub
parent 3a192896df
commit 0cdb8ad892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -500,7 +500,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