diff --git a/fhem/CHANGED b/fhem/CHANGED index c153a5ee6..2a054d8fb 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: PRESENCE: fix race condition, when delete disabled attribute and + PRESENCE does not start to scan. - added: OPENWEATHER: captures weather forecast from API of www.wetter.com - fhem 5.6 released diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 7ce944927..f771b63e2 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -373,14 +373,14 @@ PRESENCE_Attr(@) if(defined($hash->{DeviceName})) { + $hash->{helper}{DISABLED} = 0; + if(defined($hash->{FD})) { PRESENCE_DoInit($hash) if(exists($hash->{helper}{DISABLED})); - $hash->{helper}{DISABLED} = 0; } else { - $hash->{helper}{DISABLED} = 0; DevIo_OpenDev($hash, 0, "PRESENCE_DoInit"); } }