The fan mode array is missing a mode. When the fan mode is set to follow schedule on a US thermostat, Device.fan_mode() raises an out of range exception.
The fan mode follow schedule is equal to 3.
Here are the current fan modes for the US thermostat:
This commit adds the new mode, and handles the IndexError exception.
The fan mode array is missing a mode. When the fan mode is set to follow schedule on a US thermostat, Device.fan_mode() raises an out of range exception. The fan mode follow schedule is equal to 3.
Here are the current fan modes for the US thermostat:
This commit adds the new mode, and handles the IndexError exception.