From e0f7df15421bf80e8b0b1f484bec885e0f477d7f Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Thu, 2 Jan 2020 00:58:21 -0800 Subject: [PATCH] fix(media_player): fix refresh of WHA children Change the var trigger for children refreshing to be isPlayingInLemur --- custom_components/alexa_media/media_player.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/alexa_media/media_player.py b/custom_components/alexa_media/media_player.py index e419b590..b953faa8 100644 --- a/custom_components/alexa_media/media_player.py +++ b/custom_components/alexa_media/media_player.py @@ -576,8 +576,7 @@ async def refresh(self, device=None): ) else self._media_vol_level ) - if not self.hass: - return + if self.hass and self._session.get("isPlayingInLemur"): asyncio.gather( *map( lambda x: (