mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
38_netatmo.pm: use _ instead of : in autocreated device names
git-svn-id: https://svn.fhem.de/fhem/trunk@7702 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a087a8ab37
commit
adeab0bf30
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user