Open asantaga opened 7 years ago
webui.py got
self.switchHeat() File "H:/src/PiHeating/PiHeating\max.py", line 486, in switchHeat roomTemps = CreateUIPage().createRooms() File "H:/src/PiHeating/PiHeating\webui.py", line 215, in createRooms actualTemp = goodTemps[roomText] KeyError: u'Utility Room'
fixed this by changing line 215 from
actualTemp = goodTemps[roomText] to actualTemp = goodTemps.get(roomText, 0)
webui.py got
self.switchHeat() File "H:/src/PiHeating/PiHeating\max.py", line 486, in switchHeat roomTemps = CreateUIPage().createRooms() File "H:/src/PiHeating/PiHeating\webui.py", line 215, in createRooms actualTemp = goodTemps[roomText] KeyError: u'Utility Room'
fixed this by changing line 215 from
actualTemp = goodTemps[roomText] to actualTemp = goodTemps.get(roomText, 0)