2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@6876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-11-03 18:24:57 +00:00
parent d8a9380af9
commit 33ddb4defc

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