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/fhem@14084 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f5d893bd86
commit
3dbf8e1c76
@ -853,8 +853,8 @@ 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user