git-svn-id: https://svn.fhem.de/fhem/trunk@6876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-11-03 18:24:57 +00:00
parent 4b4792833e
commit 59903321f8

View File

@@ -928,7 +928,7 @@ netatmo_Get($$@)
my $station;
$station = shift @args if( $args[0] && $args[0] =~ m/[\da-f]{2}(:[\da-f]{2}){5}/ );
if( $args[0] && ( $args[0] =~ m/\d{5}/
if( $args[0] && ( $args[0] =~ m/^\d{5}$/
|| $args[0] =~ m/^a:/ ) ) {
my $addr = shift @args;
$addr = substr($addr,2) if( $addr =~ m/^a:/ );