Skip to content

Commit 8a4057c

Browse files
committed
Update room temperature bounds to reflect reasonable indoor limits
1 parent 1e392d3 commit 8a4057c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/bsblan/bsblan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,12 @@ def _validate_room_temperature(self, room_temperature: str) -> None:
549549

550550
try:
551551
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)
552+
# Room temperature should be within reasonable indoor bounds
553+
# (-10°C to 50°C or 14°F to 122°F)
554554
if self._temperature_unit == "°F":
555-
min_bound, max_bound = -58.0, 212.0
555+
min_bound, max_bound = 14.0, 122.0
556556
else:
557-
min_bound, max_bound = -50.0, 100.0
557+
min_bound, max_bound = -10.0, 50.0
558558

559559
if not (min_bound <= temp <= max_bound):
560560
raise BSBLANInvalidParameterError(room_temperature)

0 commit comments

Comments
 (0)