mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_weekprofile: fix regex for event INITIALIZED
git-svn-id: https://svn.fhem.de/fhem/trunk@14084 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
97bb9d0b5d
commit
134099b6ac
@ -854,7 +854,7 @@ sub weekprofile_Notify($$)
|
|||||||
next if(!defined($s));
|
next if(!defined($s));
|
||||||
my ($what,$who) = split(' ',$s);
|
my ($what,$who) = split(' ',$s);
|
||||||
|
|
||||||
if ($what =~ m/INITIALIZED/ || $what =~ m/REREADCFG/) {
|
if ($what =~ m/^INITIALIZED$/ || $what =~ m/REREADCFG/) {
|
||||||
delete $own->{PROFILES};
|
delete $own->{PROFILES};
|
||||||
weekprofile_refreshSendDevList($own);
|
weekprofile_refreshSendDevList($own);
|
||||||
weekprofile_assignDev($own);
|
weekprofile_assignDev($own);
|
||||||
@ -862,7 +862,7 @@ sub weekprofile_Notify($$)
|
|||||||
weekprofile_updateReadings($own);
|
weekprofile_updateReadings($own);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($what =~ m/DEFINED/ || $what =~ m/DELETED/) {
|
if ($what =~ m/DEFINED/ || $what =~ m/^DELETED/) {
|
||||||
weekprofile_refreshSendDevList($own);
|
weekprofile_refreshSendDevList($own);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user