code clean
This commit is contained in:
parent
989607fb1a
commit
b0ccb5a533
@ -677,7 +677,7 @@ sub XiaomiBTLESens_ThermoHygroSensHandle0x18($$) {
|
|||||||
|
|
||||||
Log3 $name, 5, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18";
|
Log3 $name, 5, "XiaomiBTLESens ($name) - Thermo/Hygro Sens Handle0x18";
|
||||||
|
|
||||||
chomp($notification));
|
chomp($notification);
|
||||||
|
|
||||||
$readings{'batteryLevel'} = hex("0x".$notification);
|
$readings{'batteryLevel'} = hex("0x".$notification);
|
||||||
$readings{'battery'} = (hex("0x".$notification) > 20?"ok":"low");
|
$readings{'battery'} = (hex("0x".$notification) > 20?"ok":"low");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user