Skip to content

Commit

Permalink
Trying to solves issues asev#52 asev#62 asev#63
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-code-ruiz authored Jan 13, 2025
1 parent 347039c commit 2d038df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/uponor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def get_status(self, thermostat):
var = thermostat + '_stat_battery_error'
if var in self._data and self._data[var] == "1":
return STATUS_ERROR_BATTERY
var = thermostat + '_stat_valve_position_err"'
var = thermostat + '_stat_valve_position_err'
if var in self._data and self._data[var] == "1":
return STATUS_ERROR_VALVE
var = thermostat[0:3] + 'stat_general_system_alarm'
Expand Down Expand Up @@ -291,7 +291,7 @@ def get_eco_setback(self, thermostat):
def get_last_update(self):
return self.next_sp_from_dt

def call_state_update(self):
async def call_state_update(self):
async_dispatcher_send(self._hass, SIGNAL_UPONOR_STATE_UPDATE)

# Rest
Expand Down
3 changes: 2 additions & 1 deletion custom_components/uponor/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def preset_modes(self):

@property
def current_humidity(self):
return self._state_proxy.get_humidity(self._thermostat)
humidity = self._state_proxy.get_humidity(self._thermostat)
return humidity if humidity not in (None, 0) else None

@property
def current_temperature(self):
Expand Down

0 comments on commit 2d038df

Please sign in to comment.