def cool_down(self, thermostat):
    if (thermostat.target_temperature == conf['HEATING_COMFORT_TEMP']):
        logging.info('Cooling down %s ...', thermostat.name)
        thermostat.set_temperature(conf['HEATING_LOW_TEMP'])
def cool_down(self, thermostat):
    if (thermostat.target_temperature == conf['HEATING_COMFORT_TEMP']):
        logging.info('Cooling down %s ...', thermostat.name)
        thermostat.set_temperature(conf['HEATING_LOW_TEMP'])