mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Skip adding battery on S1 Sonos devices (#50536)
This commit is contained in:
parent
2945c79c5a
commit
db82808466
@ -180,7 +180,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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user