2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

37_fakeRoku.pm: allow multiple fakeRoku devices

git-svn-id: https://svn.fhem.de/fhem/trunk@16239 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2018-02-21 10:29:23 +00:00
parent cdacb70d0f
commit 5419fcc5dd

View File

@ -76,7 +76,6 @@ fakeRoku_Define($$)
my $name = $a[0];
my $id = $a[2];
$id = undef;
$hash->{NAME} = $name;
$hash->{ID} = $id?$id:'';
@ -90,7 +89,7 @@ fakeRoku_Define($$)
$hash->{"HAS_IO::Socket::Multicast"} = $fakeRoku_hasMulticast;
$hash->{serial} = md5_hex(getUniqueId());
$hash->{serial} .= ":$hash->{ID}" if( $hash->{ID} );
$hash->{serial} .= "-$hash->{ID}" if( $hash->{ID} );
$hash->{fhemHostname} = hostname();
$hash->{fhemIP} = fakeRoku_getLocalIP();