When in heat/cool mode, the current logic will only turn off the heater/cooler when the current temperature is within range. However, this won't work if the temperature goes from being above the range to below the range, in which case the cooler needs to be turned off and the heater needs to be turned on (or vice versa).
When in heat/cool mode, the current logic will only turn off the heater/cooler when the current temperature is within range. However, this won't work if the temperature goes from being above the range to below the range, in which case the cooler needs to be turned off and the heater needs to be turned on (or vice versa).
Probably also fixes https://github.com/zacs/ha-dualmodegeneric/issues/41