Cannot set target temperature if hvac mode is off

Hey :wave:

I need to set the target temperature if hvac mode is off. Currently it looks like, that home assistant is preventing this. Found some code here.

The thermostat supports separate temperatures per hvac mode. Currently, when turning off the thermostat, it goes to the โ€žoffโ€œ temperature, whatever this was before and I am unable to change it.

What is the best way to deal with this? Is it maybe worth an issue in the tracker?