From e003e7f9ae0dbfd5dd29618d33e5246cc816251d Mon Sep 17 00:00:00 2001 From: markusbloch Date: Tue, 26 May 2015 19:34:04 +0000 Subject: [PATCH] PRESENCE: display right state for disabled lan-bluetooth device after FHEM startup git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8638 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 81aff7683..14733e89c 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -422,12 +422,12 @@ PRESENCE_Read($) if($buf eq "absence") { - readingsBulkUpdate($hash, "state", "absent"); + readingsBulkUpdate($hash, "state", "absent") unless($hash->{helper}{DISABLED}); readingsBulkUpdate($hash, "presence", "absent"); } elsif($buf =~ /present;(.+?)$/) { - readingsBulkUpdate($hash, "state", "present"); + readingsBulkUpdate($hash, "state", "present") unless($hash->{helper}{DISABLED}); readingsBulkUpdate($hash, "presence", "present"); if($1 =~ /^(.*);(.+)$/)