Skip adding battery on S1 Sonos devices (#50536)

pull/50544/head
jjlawren 2021-05-12 13:40:10 -05:00 committed by GitHub
parent 2945c79c5a
commit db82808466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(