Fix MiScale test
@@ -87,7 +87,7 @@ class TestMiscale:
def test_miscale_v2_impedance(self):
"""Test Mi Scale v2 parser."""
- data_string = "043e2402010001ef148244dedf1802010603021b1810161b1802a6b20701011201128c01a852be"
+ data_string = "043e2402010001ef148244dedf1802010603021b1810161b180226b20705040f0201ac018642be"
data = bytes(bytearray.fromhex(data_string))
# pylint: disable=unused-variable
@@ -97,11 +97,11 @@ class TestMiscale:
assert sensor_msg["firmware"] == "Mi Scale V2"
assert sensor_msg["type"] == "Mi Scale V2"
assert sensor_msg["mac"] == "DFDE448214EF"
- assert sensor_msg["packet"] == "02a6b20701011201128c01a852"
+ assert sensor_msg["packet"] == "0226b20705040f0201ac018642"
assert sensor_msg["data"]
- assert sensor_msg["non-stabilized weight"] == 105.8
+ assert sensor_msg["non-stabilized weight"] == 85.15
assert sensor_msg["weight unit"] == "kg"
- assert sensor_msg["weight removed"] == 1
+ assert sensor_msg["weight removed"] == 0
assert sensor_msg["stabilized"] == 1
- assert sensor_msg["impedance"] == 396
+ assert sensor_msg["impedance"] == 428
assert sensor_msg["rssi"] == -66
