98_weekprofile: fix regex for event INITIALIZED

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14084 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko 2017-04-23 11:57:48 +00:00
parent f5d893bd86
commit 3dbf8e1c76

View File

@ -854,7 +854,7 @@ sub weekprofile_Notify($$)
next if(!defined($s));
my ($what,$who) = split(' ',$s);
if ($what =~ m/INITIALIZED/ || $what =~ m/REREADCFG/) {
if ($what =~ m/^INITIALIZED$/ || $what =~ m/REREADCFG/) {
delete $own->{PROFILES};
weekprofile_refreshSendDevList($own);
weekprofile_assignDev($own);
@ -862,7 +862,7 @@ sub weekprofile_Notify($$)
weekprofile_updateReadings($own);
}
if ($what =~ m/DEFINED/ || $what =~ m/DELETED/) {
if ($what =~ m/DEFINED/ || $what =~ m/^DELETED/) {
weekprofile_refreshSendDevList($own);
}
}