def heat_up(self, sub):
    thermostats = self.get_thermostats()
    for thermostat in thermostats:
        if (sub == conf['CALENDAR_HEAT_ALL_SUBJECT']):
            self.thermostat_heatup(thermostat)
        elif (thermostat.name == sub):
            self.thermostat_heatup(thermostat)
def heat_up(self, sub):
    thermostats = self.get_thermostats()
    for thermostat in thermostats:
        if (sub == conf['CALENDAR_HEAT_ALL_SUBJECT']):
            self.thermostat_heatup(thermostat)
        elif (thermostat.name == sub):
            self.thermostat_heatup(thermostat)