Upgrade pyupgrade to 2.21.2, apply its changes (#52987)
This commit is contained in:
parent
c96f01df1f
commit
470f2dd73f
73 changed files with 152 additions and 162 deletions
|
@ -352,7 +352,7 @@ class SonosSpeaker:
|
|||
"""Cancel all subscriptions."""
|
||||
_LOGGER.debug("Unsubscribing from events for %s", self.zone_name)
|
||||
await asyncio.gather(
|
||||
*[subscription.unsubscribe() for subscription in self._subscriptions],
|
||||
*(subscription.unsubscribe() for subscription in self._subscriptions),
|
||||
return_exceptions=True,
|
||||
)
|
||||
self._subscriptions = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue