|
@@ -263,7 +263,7 @@ class WetationFrameProt(gui.Wetation):
|
263
|
263
|
self.__max_temp_out__ = temp
|
264
|
264
|
if self.__min_temp_out__ is None or temp < self.__min_temp_out__:
|
265
|
265
|
self.__min_temp_out__ = temp
|
266
|
|
- wx.CallAfter(self.update_current_dht_env_data, data, self.out_temperature, self.out_humidity, self.out_pressure, self.out_temperature_min, self.out_temperature_max, self.__min_temp_out__, self.__max_temp_out__)
|
|
266
|
+ wx.CallAfter(self.update_current_dht_env_data, data, self.out_temperature, self.out_humidity, self.out_temperature_min, self.out_temperature_max, self.__min_temp_out__, self.__max_temp_out__)
|
267
|
267
|
return
|
268
|
268
|
logger.warning("Unknown response with valid data for prot_id %d, service_id=%d, data_id=%d", prot_id, service_id, data_id)
|
269
|
269
|
|
|
@@ -271,7 +271,7 @@ class WetationFrameProt(gui.Wetation):
|
271
|
271
|
pressure.SetLabel('%.0f hPa' % env_data[bmp_180.KEY_PRESSURE].mean)
|
272
|
272
|
self.Layout()
|
273
|
273
|
|
274
|
|
- def update_current_dht_env_data(self, env_data, temperature, humidity, pressure, temperature_min, temperature_max, value_min, value_max):
|
|
274
|
+ def update_current_dht_env_data(self, env_data, temperature, humidity, temperature_min, temperature_max, value_min, value_max):
|
275
|
275
|
if isinstance(value_min, numbers.Number) and isinstance(value_max, numbers.Number):
|
276
|
276
|
temperature_min.SetLabel('%.1f' % value_min)
|
277
|
277
|
temperature_max.SetLabel('%.1f' % value_max)
|