code clean

This commit is contained in:
Marko Oldenburg 2018-01-24 05:53:45 +01:00
parent 989607fb1a
commit b0ccb5a533

View File

@ -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");