mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
WeekdayTimer: prepare for changes to weekprofile
git-svn-id: https://svn.fhem.de/fhem/trunk@23654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6007a0cc96
commit
a975110e67
@ -687,7 +687,7 @@ E: while (@$a > 0) {
|
||||
|
||||
return if !$wp_profile;
|
||||
my $wp_sunaswe = $wprof[2]//0;
|
||||
my $wp_profile_data = CommandGet(undef,$wp_name . " profile_data ". $wp_profile);
|
||||
my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile 0");
|
||||
if ($wp_profile_data =~ m{(profile.*not.found|usage..profile_data..name)}xms ) {
|
||||
Log3( $hash, 3, "[$name] weekprofile $wp_name: no profile named \"$wp_profile\" available" );
|
||||
return;
|
||||
|
@ -65,7 +65,7 @@ sub z2t_send_weekprofile {
|
||||
my $hash = $defs{$name};
|
||||
$topic .= ' ';
|
||||
|
||||
my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile");
|
||||
my $wp_profile_data = CommandGet(undef,"$wp_name profile_data $wp_profile 0");
|
||||
if ($wp_profile_data =~ m{(profile.*not.found|usage..profile_data..name)}xms ) {
|
||||
Log3( $hash, 3, "[$name] weekprofile $wp_name: no profile named \"$wp_profile\" available" );
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user