38_netatmo.pm: use _ instead of : in autocreated device names

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7702 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-01-24 21:31:28 +00:00
parent 7f6596e2e1
commit d9c9d33863

View File

@@ -634,9 +634,11 @@ netatmo_autocreate($;$)
my $id = $device->{_id};
my $devname = "netatmo_D". $id;
$devname =~ s/:/_/g;
my $define= "$devname netatmo $id";
if( $device->{main_device} ) {
$devname = "netatmo_M". $id;
$devname =~ s/:/_/g;
$define= "$devname netatmo MODULE $device->{main_device} $id";
}