@schedule_mode.setter<EOL><INDENT>def schedule_mode(self, mode):<DEDENT>
modes = [config.SCHEDULE_RUN, config.SCHEDULE_TEMPORARY_HOLD, config.SCHEDULE_HOLD]<EOL>if mode not in modes:<EOL><INDENT>raise Exception("<STR_LIT>".format(modes))<EOL><DEDENT>self.set_data({"<STR_LIT>": mode})<EOL>
Set the thermostat mode

:param mode: The desired mode integer value.
             Auto = 1
             Temporary hold = 2
             Permanent hold = 3