From d4de562b89a0fb543a8a65802c4fab2c6ee53213 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 16 Jan 2018 13:56:21 +0100 Subject: [PATCH] fix bug then set devicename --- 74_XiaomiBTLESens.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 8a01baf..989acc5 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -47,7 +47,7 @@ use JSON; use Blocking; -my $version = "1.99.40"; +my $version = "1.99.41"; @@ -349,7 +349,7 @@ sub XiaomiBTLESens_Set($$@) { return "usage: devicename " if( @args < 1 ); my $devicename = join( " ", @args ); - $handle = $XiaomiModels{$attr{$name}{model}}{devicename}; $value = XiaomiBTLESens_CreateDevicenameHEX(makeDeviceName($devicename)); + $mod = 'write'; $handle = $XiaomiModels{$attr{$name}{model}}{devicename}; $value = XiaomiBTLESens_CreateDevicenameHEX(makeDeviceName($devicename)); } else { my $list = "";