Skip to content

Commit

Permalink
update as retreiveTimeOut_Motion() has been renamed to retrieve_timeo…
Browse files Browse the repository at this point in the history
…ut_motion
  • Loading branch information
pipiche38 committed Dec 4, 2024
1 parent 9135bc1 commit c4baeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/domoTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def retreive_reset_delays(self, nwkid):
def reset_motion(self, Devices, NwkId, WidgetType, DeviceId_, Unit_, SignalLevel, BatteryLvl, ID, now, lastupdate, TimedOut):
nValue, sValue = domo_read_nValue_sValue(self, Devices, DeviceId_, Unit_)

if nValue == 0 and sValue == "Off" or (now - lastupdate) < TimedOut or (self.domoticzdb_DeviceStatus and self.domoticzdb_DeviceStatus.retreiveTimeOut_Motion(ID) > 0):
if nValue == 0 and sValue == "Off" or (now - lastupdate) < TimedOut or (self.domoticzdb_DeviceStatus and self.domoticzdb_DeviceStatus.retrieve_timeout_motion(ID) > 0):
return

domo_update_api(self, Devices, DeviceId_, Unit_, nValue=0, sValue="Off")
Expand Down

0 comments on commit c4baeec

Please sign in to comment.