mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Fix state updating for crossfade switch on Sonos (#79776)
This commit is contained in:
committed by
Paulus Schoutsen
parent
81783fd52b
commit
1143ede4db
@@ -489,7 +489,10 @@ class SonosSpeaker:
|
||||
return
|
||||
|
||||
if crossfade := event.variables.get("current_crossfade_mode"):
|
||||
self.cross_fade = bool(int(crossfade))
|
||||
crossfade = bool(int(crossfade))
|
||||
if self.cross_fade != crossfade:
|
||||
self.cross_fade = crossfade
|
||||
self.async_write_entity_states()
|
||||
|
||||
# Missing transport_state indicates a transient error
|
||||
if (new_status := event.variables.get("transport_state")) is None:
|
||||
|
Reference in New Issue
Block a user