mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Remove unneeded parenthesis in comparison for Sonos (#145413)
fix: remove unneeded paren
This commit is contained in:
parent
12b5dbdd83
commit
bffbd5607b
@ -86,7 +86,7 @@ class SonosPowerEntity(SonosEntity, BinarySensorEntity):
|
|||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
"""Return whether this device is available."""
|
"""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):
|
class SonosMicrophoneSensorEntity(SonosEntity, BinarySensorEntity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user