00_ZWDongle.pm: add readingsSingleUpdate (Forum #53240)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11428 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-05-10 20:31:59 +00:00
parent 13e48e5ad5
commit 5a82472213

View File

@ -416,9 +416,7 @@ ZWDongle_Get($@)
} }
$cmd .= "_".join("_", @a) if(@a); $cmd .= "_".join("_", @a) if(@a);
$hash->{READINGS}{$cmd}{VAL} = $msg; readingsSingleUpdate($hash, $cmd, $msg, 0);
$hash->{READINGS}{$cmd}{TIME} = TimeNow();
return "$name $cmd => $msg"; return "$name $cmd => $msg";
} }