From 2629275cad96826c1b3fcbe8a6629e5763d2bc7e Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sat, 20 Jun 2020 17:24:31 +0000 Subject: [PATCH] 76_SMAPortal: contrib 3.1.0 git-svn-id: https://svn.fhem.de/fhem/trunk@22213 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SMAPortal.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SMAPortal.pm b/fhem/contrib/DS_Starter/76_SMAPortal.pm index f0876617f..39f211c49 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortal.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortal.pm @@ -665,7 +665,8 @@ sub Attr { } readingsBeginUpdate($hash); - readingsBulkUpdate ($hash, "state", $val); + readingsBulkUpdate ($hash, "state", $val); + readingsBulkUpdate ($hash, "loginState", "unknown"); readingsEndUpdate ($hash, 1); InternalTimer(gettimeofday()+2.0, "FHEM::SMAPortal::SPGRefresh", "$name,0,1", 0); @@ -1777,7 +1778,7 @@ sub ParseData { ## no critic @da = split "###", $lc; } - deleteData($hash, 1); + deleteData($hash, 1) if($getp ne "none"); # Daten nur löschen wenn Datenabruf (kein Verbraucher schalten) readingsBeginUpdate($hash);