59_Twilight.pm: fix pattern match for ext. weather

git-svn-id: https://svn.fhem.de/fhem/trunk@23972 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User
2021-03-14 18:02:34 +00:00
parent 6a54acb397
commit 97aaab37e0

View File

@@ -421,7 +421,7 @@ sub Twilight_init_ExtWeather_usage {
my ($extWeather, $extWReading, $err);
my @parts;
if (!looks_like_number($devreading)) {
@parts = split m{ }x, $devreading, 2;
@parts = split m{\s}x, $devreading, 2;
($extWeather, $extWReading) = split m{:}x, $parts[0];
return 'External weather device seems not to exist' if !defined $defs{$extWeather} && $init_done;