From 6a474e74e827ad5c38ba3113c81ac8dfefdfeb95 Mon Sep 17 00:00:00 2001 From: definitio <37266727+definitio@users.noreply.github.com> Date: Tue, 1 Jun 2021 20:07:51 +0300 Subject: [PATCH] Fix Snapcast state after restoring snapshot (#51340) --- homeassistant/components/snapcast/media_player.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/snapcast/media_player.py b/homeassistant/components/snapcast/media_player.py index dcb4b62b35a..26bf4c903a6 100644 --- a/homeassistant/components/snapcast/media_player.py +++ b/homeassistant/components/snapcast/media_player.py @@ -198,6 +198,7 @@ class SnapcastGroupDevice(MediaPlayerEntity): async def async_restore(self): """Restore the group state.""" await self._group.restore() + self.async_write_ha_state() class SnapcastClientDevice(MediaPlayerEntity): @@ -326,6 +327,7 @@ class SnapcastClientDevice(MediaPlayerEntity): async def async_restore(self): """Restore the client state.""" await self._client.restore() + self.async_write_ha_state() async def async_set_latency(self, latency): """Set the latency of the client."""