2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

91_notify: do no reset stateFormat upon startup (Forum #123956)

git-svn-id: https://svn.fhem.de/fhem/trunk@25231 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-11-15 17:34:18 +00:00
parent 1fdec7e87b
commit 37f8f58179

View File

@ -245,6 +245,8 @@ notify_State($$$$)
{
my ($hash, $tim, $vt, $val) = @_;
$hash->{STATE} = $val if($vt eq "STATE" && !$init_done);
return undef if($vt ne "state" || $val ne "inactive");
readingsSingleUpdate($hash, "state", "inactive", 1);
return undef;