Skip to content

KeyError on room with 0.0 temp #2

@asantaga

Description

@asantaga

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions