Skip to content

Commit e2c79c5

Browse files
committed
Add missing logic
1 parent a7b61c2 commit e2c79c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugwise/helper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,11 +1265,16 @@ def _schedules(
12651265
float(entry["setpoint"]),
12661266
DEFAULT_PW_MIN,
12671267
]
1268-
else: # preset in entry
1268+
elif "preset" in entry:
12691269
schedule[directive.attrib["time"]] = [
12701270
float(self._presets(loc_id)[entry["preset"]][0]),
12711271
float(self._presets(loc_id)[entry["preset"]][1]),
12721272
]
1273+
else:
1274+
schedule[directive.attrib["time"]] = [
1275+
float(entry["heating_setpoint"]),
1276+
float(entry["cooling_setpoint"]),
1277+
]
12731278

12741279
available.append(name)
12751280
if location == loc_id:

0 commit comments

Comments
 (0)