mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
59_Twilight: fix unitialized useExtWeather warning at startup
git-svn-id: https://svn.fhem.de/fhem/trunk@24051 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bdabd725ff
commit
e4c717851b
@ -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 $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}{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