change set room after define
This commit is contained in:
parent
9a5cfefee6
commit
6f9fef5c0f
@ -45,7 +45,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "0.2.0";
|
my $version = "0.2.1";
|
||||||
|
|
||||||
sub CometBlueBTLE_Initialize($) {
|
sub CometBlueBTLE_Initialize($) {
|
||||||
|
|
||||||
@ -199,8 +199,7 @@ sub Define($$) {
|
|||||||
$hash->{tempListsHandleQueue} = [];
|
$hash->{tempListsHandleQueue} = [];
|
||||||
|
|
||||||
readingsSingleUpdate( $hash, "state", "initialized", 0 );
|
readingsSingleUpdate( $hash, "state", "initialized", 0 );
|
||||||
|
CommandAttr(undef,$name . ' room CometBlueBTLE') if ( AttrVal($name,'room','none') eq 'none' );
|
||||||
#$attr{$name}{room} = "CometBlueBTLE" if( AttrVal($name,'room','none') eq 'none' );
|
|
||||||
|
|
||||||
Log3 $name, 3, "CometBlueBTLE ($name) - defined with BTMAC $hash->{BTMAC}";
|
Log3 $name, 3, "CometBlueBTLE ($name) - defined with BTMAC $hash->{BTMAC}";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user