mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +00:00
38_netatmo.pm: plz hast to have exactly 5 digits. (http://forum.fhem.de/index.php/topic,14457.msg214608.html#msg214608)
git-svn-id: https://svn.fhem.de/fhem/trunk@6876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d8a9380af9
commit
33ddb4defc
@ -928,7 +928,7 @@ netatmo_Get($$@)
|
|||||||
my $station;
|
my $station;
|
||||||
$station = shift @args if( $args[0] && $args[0] =~ m/[\da-f]{2}(:[\da-f]{2}){5}/ );
|
$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:/ ) ) {
|
|| $args[0] =~ m/^a:/ ) ) {
|
||||||
my $addr = shift @args;
|
my $addr = shift @args;
|
||||||
$addr = substr($addr,2) if( $addr =~ m/^a:/ );
|
$addr = substr($addr,2) if( $addr =~ m/^a:/ );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user