Skip to content

Commit ee17e8c

Browse files
authored
Merge pull request #18 from PTST/binaty-sensors
d'oh
2 parents 57d0fce + 8b07592 commit ee17e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/libreview/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def name(self) -> str:
120120
@property
121121
def is_on(self) -> bool:
122122
"""Return the state of the entity."""
123-
return self.gcm.value_in_mg_per_dl > self.connection.target_low
123+
return self.gcm.value_in_mg_per_dl < self.connection.target_low
124124

125125
@property
126126
def extra_state_attributes(self) -> Dict[str, int | float]:

0 commit comments

Comments
 (0)