@@ -392,7 +392,7 @@ async def set_hysteresis_humidity_upper_bound(self, upper_bound: float) -> bool:
392392 and upper_bound < self ._hysteresis_config .humidity_lower_bound
393393 ):
394394 raise ValueError (
395- f"Invalid humidity upper bound { upper_bound } . It must be equal or above the lower bound { self ._hysteresis_config .humidity_lower_bound } ."
395+ f"Invalid humidity upper bound { upper_bound } . It must be ≥ the lower bound { self ._hysteresis_config .humidity_lower_bound } ."
396396 )
397397 if self ._hysteresis_config .humidity_upper_bound == upper_bound :
398398 return False
@@ -424,7 +424,7 @@ async def set_hysteresis_humidity_lower_bound(self, lower_bound: float) -> bool:
424424 and lower_bound > self ._hysteresis_config .humidity_upper_bound
425425 ):
426426 raise ValueError (
427- f"Invalid humidity lower bound { lower_bound } . It must be equal or above the lower bound { self ._hysteresis_config .humidity_lower_bound } ."
427+ f"Invalid humidity lower bound { lower_bound } . It must be ≤ the upper bound { self ._hysteresis_config .humidity_upper_bound } ."
428428 )
429429 if self ._hysteresis_config .humidity_lower_bound == lower_bound :
430430 return False
@@ -498,7 +498,7 @@ async def set_hysteresis_temperature_upper_bound(self, upper_bound: float) -> bo
498498 and upper_bound < self ._hysteresis_config .temperature_lower_bound
499499 ):
500500 raise ValueError (
501- f"Invalid temperature upper bound { upper_bound } . It must be equal or above the lower bound { self ._hysteresis_config .temperature_lower_bound } ."
501+ f"Invalid temperature upper bound { upper_bound } . It must be ≥ the lower bound { self ._hysteresis_config .temperature_lower_bound } ."
502502 )
503503 if self ._hysteresis_config .temperature_upper_bound == upper_bound :
504504 return False
@@ -530,7 +530,7 @@ async def set_hysteresis_temperature_lower_bound(self, lower_bound: float) -> bo
530530 and lower_bound > self ._hysteresis_config .temperature_upper_bound
531531 ):
532532 raise ValueError (
533- f"Invalid temperature lower bound { lower_bound } . It must be equal or below the upper bound { self ._hysteresis_config .temperature_upper_bound } ."
533+ f"Invalid temperature lower bound { lower_bound } . It must be ≤ the upper bound { self ._hysteresis_config .temperature_upper_bound } ."
534534 )
535535 if self ._hysteresis_config .temperature_lower_bound == lower_bound :
536536 return False
@@ -731,7 +731,7 @@ async def _configure_sense_temperature_task(self) -> bool:
731731 request = SenseConfigureHysteresisRequest (
732732 self ._send ,
733733 self ._mac_in_bytes ,
734- False ,
734+ True ,
735735 temperature_lower_bound ,
736736 temperature_upper_bound ,
737737 self .temperature_direction ,
0 commit comments