We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e392d3 commit 8a4057cCopy full SHA for 8a4057c
1 file changed
src/bsblan/bsblan.py
@@ -549,12 +549,12 @@ def _validate_room_temperature(self, room_temperature: str) -> None:
549
550
try:
551
temp = float(room_temperature)
552
- # Room temperature can be outside the thermostat range,
553
- # but should be within reasonable bounds (-50°C to 100°C or -58°F to 212°F)
+ # Room temperature should be within reasonable indoor bounds
+ # (-10°C to 50°C or 14°F to 122°F)
554
if self._temperature_unit == "°F":
555
- min_bound, max_bound = -58.0, 212.0
+ min_bound, max_bound = 14.0, 122.0
556
else:
557
- min_bound, max_bound = -50.0, 100.0
+ min_bound, max_bound = -10.0, 50.0
558
559
if not (min_bound <= temp <= max_bound):
560
raise BSBLANInvalidParameterError(room_temperature)
0 commit comments