Remove unneeded parenthesis in comparison for Sonos (#145413)

fix: remove unneeded paren
This commit is contained in:
Pete Sage 2025-05-22 02:17:31 -04:00 committed by GitHub
parent 12b5dbdd83
commit bffbd5607b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ class SonosPowerEntity(SonosEntity, BinarySensorEntity):
@property
def available(self) -> bool:
"""Return whether this device is available."""
return self.speaker.available and (self.speaker.charging is not None)
return self.speaker.available and self.speaker.charging is not None
class SonosMicrophoneSensorEntity(SonosEntity, BinarySensorEntity):