diff --git a/tests/test_sensor.py b/tests/test_sensor.py index fc3c117..6397265 100644 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -100,9 +100,9 @@ class OtherEnum(enum.Enum): "sensor_type,compatible_value", [ (bool, True), - (int, 1_2_3_4), - (float, Fraction(1234678)), - (float, Fraction(12345678)), + (int, 1234), + (float, 1234.5), + (float, Fraction(8190 / 64)), (str, "one-two-three-four"), (bytes, b"one-two-three-four"), (Address, Address(IPv4Address("1.2.3.4"))), @@ -138,7 +138,7 @@ def test_sensor_value_setter_success( (bool, "True"), (int, "1234"), (int, 1234.5), - (float, "1234.5"), + (float, 1 + 2j), (str, {"a": 1}), (str, b"bytes"), (bytes, "str"),