2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

22_HOMEMODE: fixed serviceAutostop triggered even if device is disabled

git-svn-id: https://svn.fhem.de/fhem/trunk@27225 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
deespe 2023-02-14 16:56:07 +00:00
parent e4b94ea8b8
commit 30221f109a
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # Do not insert empty lines here, update check depends on it.
- bugfix: 98_serviced: serviceAutostop triggered even if device is disabled
- change: 50_TelegramBot: new reading msgDate and corrections - change: 50_TelegramBot: new reading msgDate and corrections
- feature: 72_FRITZBOX: Attr. enableWanInfo -> enableWLANneighbors - feature: 72_FRITZBOX: Attr. enableWanInfo -> enableWLANneighbors
Attr. wlanNeighborsPrefix Attr. wlanNeighborsPrefix

View File

@ -16,7 +16,7 @@ use Blocking;
use Time::HiRes; use Time::HiRes;
use vars qw{%defs}; use vars qw{%defs};
my $servicedVersion = "1.2.8"; my $servicedVersion = "1.2.9";
sub serviced_shutdownwait($); sub serviced_shutdownwait($);
@ -403,6 +403,7 @@ sub serviced_Shutdown($)
my ($hash) = @_; my ($hash) = @_;
my $name = $hash->{NAME}; my $name = $hash->{NAME};
my $autostop = AttrNum($name,"serviceAutostop",0); my $autostop = AttrNum($name,"serviceAutostop",0);
return if (IsDisabled($name));
$autostop = $autostop > 300 ? 300 : $autostop; $autostop = $autostop > 300 ? 300 : $autostop;
if ($autostop) if ($autostop)
{ {