mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
switch to default polling cycle to solve multiple instance issue
This commit is contained in:
parent
513f6e9c3c
commit
9b47241a46
@ -62,13 +62,9 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
self._player = player
|
self._player = player
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
track_utc_time_change(
|
|
||||||
hass, self.update_sonos,
|
|
||||||
second=range(0, 60, 5))
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def should_poll(self):
|
def should_poll(self):
|
||||||
return False
|
return True
|
||||||
|
|
||||||
def update_sonos(self, now):
|
def update_sonos(self, now):
|
||||||
""" Updates state, called by track_utc_time_change """
|
""" Updates state, called by track_utc_time_change """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user