FB_CALLMONITOR: exclude also deflected calls from calls_count reading

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21691 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2020-04-15 08:33:50 +00:00
parent e496a5d508
commit 25b978d150

View File

@ -577,7 +577,7 @@ FB_CALLMONITOR_Read($)
delete($hash->{helper}{TEMP}{$array[2]});
}
readingsBulkUpdate($hash, "calls_count", scalar grep { not $hash->{helper}{TEMP}{$_}{".filtered"} } keys %{$hash->{helper}{TEMP}});
readingsBulkUpdate($hash, "calls_count", scalar grep { not ($hash->{helper}{TEMP}{$_}{".filtered"} or $hash->{helper}{TEMP}{$_}{".deflected"}) } keys %{$hash->{helper}{TEMP}});
readingsEndUpdate($hash, 1);
}