mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
1fdec7e87b
commit
37f8f58179
@ -245,6 +245,8 @@ notify_State($$$$)
|
|||||||
{
|
{
|
||||||
my ($hash, $tim, $vt, $val) = @_;
|
my ($hash, $tim, $vt, $val) = @_;
|
||||||
|
|
||||||
|
$hash->{STATE} = $val if($vt eq "STATE" && !$init_done);
|
||||||
|
|
||||||
return undef if($vt ne "state" || $val ne "inactive");
|
return undef if($vt ne "state" || $val ne "inactive");
|
||||||
readingsSingleUpdate($hash, "state", "inactive", 1);
|
readingsSingleUpdate($hash, "state", "inactive", 1);
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user