Example #1
0
 def update(self):
     """Call the NetAtmo API to update the data."""
     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
Example #2
0
 def update(self):
     """Call the NetAtmo API to update the data."""
     import lnetatmo
     self.thermostatdata = lnetatmo.ThermostatData(self.auth)