Update ruff to v0.0.280 (#97102)
This commit is contained in:
parent
bdd253328d
commit
86708b5590
20 changed files with 25 additions and 60 deletions
|
@ -47,7 +47,7 @@ class FliprBinarySensor(FliprEntity, BinarySensorEntity):
|
|||
@property
|
||||
def is_on(self) -> bool:
|
||||
"""Return true if the binary sensor is on in case of a Problem is detected."""
|
||||
return (
|
||||
self.coordinator.data[self.entity_description.key] == "TooLow"
|
||||
or self.coordinator.data[self.entity_description.key] == "TooHigh"
|
||||
return self.coordinator.data[self.entity_description.key] in (
|
||||
"TooLow",
|
||||
"TooHigh",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue