def set_status(self, enabled):
        """Enable or disable the HVAC."""
        self.__manual_update_time = time.time()
        if enabled:
            data = self._controller.command(self._id,
                                            'auto_conditioning_start',
                                            wake_if_asleep=True)
            if data['response']['result']:
                self.__is_auto_conditioning_on = True
                self.__is_climate_on = True
        else:
            data = self._controller.command(self._id,
                                            'auto_conditioning_stop',
                                            wake_if_asleep=True)
            if data['response']['result']:
                self.__is_auto_conditioning_on = False
                self.__is_climate_on = False
        self.update()
def set_status ( self , enabled ) : self . __manual_update_time = time . time ( ) if enabled : data = self . _controller . command ( self . _id , 'auto_conditioning_start' , wake_if_asleep = True ) if data [ 'response' ] [ 'result' ] : self . __is_auto_conditioning_on = True self . __is_climate_on = True else : data = self . _controller . command ( self . _id , 'auto_conditioning_stop' , wake_if_asleep = True ) if data [ 'response' ] [ 'result' ] : self . __is_auto_conditioning_on = False self . __is_climate_on = False self . update ( )
Enable or disable the HVAC.