mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Remove unneeded parenthesis in comparison for Sonos (#145413)
fix: remove unneeded paren
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user