'Call the NetAtmo API to update the data.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    import lnetatmo
    self.thermostatdata = lnetatmo.ThermostatData(self.auth)
    self.target_temperature = self.thermostatdata.setpoint_temp
    self.setpoint_mode = self.thermostatdata.setpoint_mode
    self.current_temperature = self.thermostatdata.temp
