forked from home-assistant/core
Skip adding battery on S1 Sonos devices (#50536)
This commit is contained in:
committed by
Paulus Schoutsen
parent
8e3894a441
commit
3e8d840905
@@ -96,7 +96,7 @@ class SonosSpeaker:
|
||||
self.hass, f"{SONOS_SEEN}-{self.soco.uid}", self.async_seen
|
||||
)
|
||||
|
||||
if (battery_info := fetch_battery_info_or_none(self.soco)) is not None:
|
||||
if battery_info := fetch_battery_info_or_none(self.soco):
|
||||
# Battery events can be infrequent, polling is still necessary
|
||||
self.battery_info = battery_info
|
||||
self._battery_poll_timer = self.hass.helpers.event.track_time_interval(
|
||||
|
Reference in New Issue
Block a user