1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-11-03 18:24:57 +00:00
parent a706d7e742
commit 4d82f049da

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:/ );