mirror of
https://github.com/home-assistant/core.git
synced 2025-04-30 12:17:52 +00:00
Fix Snapcast state after restoring snapshot (#51340)
This commit is contained in:
parent
cdd1f6b2f0
commit
6a474e74e8
@ -198,6 +198,7 @@ class SnapcastGroupDevice(MediaPlayerEntity):
|
|||||||
async def async_restore(self):
|
async def async_restore(self):
|
||||||
"""Restore the group state."""
|
"""Restore the group state."""
|
||||||
await self._group.restore()
|
await self._group.restore()
|
||||||
|
self.async_write_ha_state()
|
||||||
|
|
||||||
|
|
||||||
class SnapcastClientDevice(MediaPlayerEntity):
|
class SnapcastClientDevice(MediaPlayerEntity):
|
||||||
@ -326,6 +327,7 @@ class SnapcastClientDevice(MediaPlayerEntity):
|
|||||||
async def async_restore(self):
|
async def async_restore(self):
|
||||||
"""Restore the client state."""
|
"""Restore the client state."""
|
||||||
await self._client.restore()
|
await self._client.restore()
|
||||||
|
self.async_write_ha_state()
|
||||||
|
|
||||||
async def async_set_latency(self, latency):
|
async def async_set_latency(self, latency):
|
||||||
"""Set the latency of the client."""
|
"""Set the latency of the client."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user