From aa50d437990011758e57a83b5f9ae1ec49a8b7be Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Tue, 29 Sep 2020 18:19:20 +0200 Subject: [PATCH] BugFix: dht guiinterface --- smarthome.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smarthome.py b/smarthome.py index 0e7c57b..6eca5f5 100644 --- a/smarthome.py +++ b/smarthome.py @@ -263,7 +263,7 @@ class WetationFrameProt(gui.Wetation): self.__max_temp_out__ = temp if self.__min_temp_out__ is None or temp < self.__min_temp_out__: self.__min_temp_out__ = temp - 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__) + 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__) return logger.warning("Unknown response with valid data for prot_id %d, service_id=%d, data_id=%d", prot_id, service_id, data_id) @@ -271,7 +271,7 @@ class WetationFrameProt(gui.Wetation): pressure.SetLabel('%.0f hPa' % env_data[bmp_180.KEY_PRESSURE].mean) self.Layout() - def update_current_dht_env_data(self, env_data, temperature, humidity, pressure, temperature_min, temperature_max, value_min, value_max): + def update_current_dht_env_data(self, env_data, temperature, humidity, temperature_min, temperature_max, value_min, value_max): if isinstance(value_min, numbers.Number) and isinstance(value_max, numbers.Number): temperature_min.SetLabel('%.1f' % value_min) temperature_max.SetLabel('%.1f' % value_max)