forked from home-assistant/core
Fix Sonos polling bug (#50265)
This commit is contained in:
committed by
Paulus Schoutsen
parent
83db35d2d6
commit
2d3b8fb329
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
from asyncio import gather
|
||||
import contextlib
|
||||
import datetime
|
||||
from functools import partial
|
||||
import logging
|
||||
from typing import Any, Callable
|
||||
|
||||
@@ -223,7 +224,11 @@ class SonosSpeaker:
|
||||
return
|
||||
|
||||
self._poll_timer = self.hass.helpers.event.async_track_time_interval(
|
||||
async_dispatcher_send(self.hass, f"{SONOS_ENTITY_UPDATE}-{self.soco.uid}"),
|
||||
partial(
|
||||
async_dispatcher_send,
|
||||
self.hass,
|
||||
f"{SONOS_ENTITY_UPDATE}-{self.soco.uid}",
|
||||
),
|
||||
SCAN_INTERVAL,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user