From bfb922ff7553918bc88b52ec51ab0b89c2f4908a Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 12 Jun 2018 09:58:46 +0200 Subject: [PATCH] fix bug --- 74_XiaomiBTLESens.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index fceec6a..49ae9e6 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -801,7 +801,7 @@ sub XiaomiBTLESens_WriteReadings($$) { } readingsBulkUpdateIfChanged($hash, "state", ($readings->{'lastGattError'}?'error':'active')) if( AttrVal($name,'model','none') eq 'flowerSens' ); - readingsBulkUpdateIfChanged($hash, "state", ($readings->{'lastGattError'}?'error':'T: '.ReadingsVal($name,'temperature',0).' H: '.ReadingsVal($name,'humidity',0) ) if( AttrVal($name,'model','none') eq 'thermoHygroSens' ); + readingsBulkUpdateIfChanged($hash, "state", ($readings->{'lastGattError'}?'error':'T: '.ReadingsVal($name,'temperature',0).' H: '.ReadingsVal($name,'humidity',0)) ) if( AttrVal($name,'model','none') eq 'thermoHygroSens' ); readingsEndUpdate($hash,1);