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:
Risiko 2017-04-23 11:57:48 +00:00
parent 97bb9d0b5d
commit 134099b6ac

View File

@ -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);
} }
} }