Browse Source

BugFix: dht guiinterface

mod_update
Dirk Alders 4 years ago
parent
commit
aa50d43799
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      smarthome.py

+ 2
- 2
smarthome.py View File

263
                         self.__max_temp_out__ = temp
263
                         self.__max_temp_out__ = temp
264
                     if self.__min_temp_out__ is None or temp < self.__min_temp_out__:
264
                     if self.__min_temp_out__ is None or temp < self.__min_temp_out__:
265
                         self.__min_temp_out__ = temp
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
                 return
267
                 return
268
         logger.warning("Unknown response with valid data for prot_id %d, service_id=%d, data_id=%d", prot_id, service_id, data_id)
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
         pressure.SetLabel('%.0f hPa' % env_data[bmp_180.KEY_PRESSURE].mean)
271
         pressure.SetLabel('%.0f hPa' % env_data[bmp_180.KEY_PRESSURE].mean)
272
         self.Layout()
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
         if isinstance(value_min, numbers.Number) and isinstance(value_max, numbers.Number):
275
         if isinstance(value_min, numbers.Number) and isinstance(value_max, numbers.Number):
276
             temperature_min.SetLabel('%.1f' % value_min)
276
             temperature_min.SetLabel('%.1f' % value_min)
277
             temperature_max.SetLabel('%.1f' % value_max)
277
             temperature_max.SetLabel('%.1f' % value_max)

Loading…
Cancel
Save