mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
59_Twilight: fix unitialized useExtWeather warning at startup
git-svn-id: https://svn.fhem.de/fhem/trunk@24052 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e4c717851b
commit
532252a857
@ -402,7 +402,7 @@ sub Twilight_Attr {
|
||||
|
||||
if ( $attrName eq 'useExtWeather' ) {
|
||||
if ($cmd eq 'set') {
|
||||
return "External weather device already in use, most likely assigned by define" if defined $hash->{helper} && defined $hash->{helper}{extWeather}{regexp} && $hash->{helper}{extWeather}{regexp} =~ m{$attrVal}xms;
|
||||
return "External weather device already in use, most likely assigned by define" if defined $hash->{helper} && defined $hash->{helper}{extWeather} && defined $hash->{helper}{extWeather}{regexp} && $hash->{helper}{extWeather}{regexp} =~ m{$attrVal}xms;
|
||||
return Twilight_init_ExtWeather_usage($hash, $attrVal);
|
||||
} elsif ($cmd eq 'del') {
|
||||
notifyRegexpChanged( $hash, q{} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user