Skip to content

Commit

Permalink
one more quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Dec 9, 2023
1 parent c62cf8e commit da5a462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/domoMaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def _domo_maj_one_cluster_type_entry( self, Devices, NwkId, Ep, device_id_ieee,
adjvalue = 0
if self.domoticzdb_DeviceStatus:
try:
adjvalue = round(self.domoticzdb_DeviceStatus.retreiveAddjValue_temp(prev_nValue.ID), 1)
adjvalue = round(self.domoticzdb_DeviceStatus.retreiveAddjValue_temp(Devices[device_unit].ID), 1)
except Exception as e:
self.log.logging("Widget", "Error", "Error while trying to get Adjusted Value for Temp %s %s %s %s" % (
NwkId, value, WidgetType, e), NwkId)
Expand Down Expand Up @@ -911,7 +911,7 @@ def _domo_maj_one_cluster_type_entry( self, Devices, NwkId, Ep, device_id_ieee,
adjvalue = 0
if self.domoticzdb_DeviceStatus:
try:
adjvalue = round(self.domoticzdb_DeviceStatus.retreiveAddjValue_baro(prev_nValue.ID), 1)
adjvalue = round(self.domoticzdb_DeviceStatus.retreiveAddjValue_baro(Devices[device_unit].ID), 1)
except Exception as e:
self.log.logging("Widget", "Error", "Error while trying to get Adjusted Value for Temp %s %s %s %s" % (
NwkId, value, WidgetType, e), NwkId)
Expand Down

0 comments on commit da5a462

Please sign in to comment.