Fix non-thread-safe operation in roon volume callback (#116475)

This commit is contained in:
J. Nick Koston 2024-04-30 15:47:27 -05:00 committed by GitHub
parent 963d8d6a76
commit d524baafd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,6 @@ class RoonEventEntity(EventEntity):
via_device=(DOMAIN, self._server.roon_id),
)
@callback
def _roonapi_volume_callback(
self, control_key: str, event: str, value: int
) -> None:
@ -88,7 +87,7 @@ class RoonEventEntity(EventEntity):
event = "volume_down"
self._trigger_event(event)
self.async_write_ha_state()
self.schedule_update_ha_state()
async def async_added_to_hass(self) -> None:
"""Register volume hooks with the roon api."""