From 79768912499afa97522eab3030105795f9816bec Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 9 Nov 2018 09:33:23 +0100 Subject: [PATCH] bugfix --- 74_CometBlueBTLE.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/74_CometBlueBTLE.pm b/74_CometBlueBTLE.pm index cb6b789..4e6a9b4 100644 --- a/74_CometBlueBTLE.pm +++ b/74_CometBlueBTLE.pm @@ -199,7 +199,8 @@ sub Define($$) { $hash->{tempListsHandleQueue} = []; readingsSingleUpdate( $hash, "state", "initialized", 0 ); - CommandAttr(undef,$name . ' room CometBlueBTLE') if ( AttrVal($name,'room','none') eq 'none' ); + CommandAttr( undef, $name . ' room CometBlueBTLE' ) + if ( AttrVal( $name, 'room', 'none' ) eq 'none' ); Log3 $name, 3, "CometBlueBTLE ($name) - defined with BTMAC $hash->{BTMAC}";