diff --git a/src/xiaomi_ble/__init__.py b/src/xiaomi_ble/__init__.py index 94543ac..52c28e9 100644 --- a/src/xiaomi_ble/__init__.py +++ b/src/xiaomi_ble/__init__.py @@ -5,6 +5,7 @@ MIT License applies. """ + from __future__ import annotations from sensor_state_data import ( diff --git a/src/xiaomi_ble/const.py b/src/xiaomi_ble/const.py index 00696d9..644e843 100644 --- a/src/xiaomi_ble/const.py +++ b/src/xiaomi_ble/const.py @@ -1,4 +1,5 @@ """Constants for Xiaomi BLE advertisements.""" + from enum import Enum from sensor_state_data import BaseDeviceClass diff --git a/src/xiaomi_ble/events.py b/src/xiaomi_ble/events.py index 7cfae84..c59d6d3 100644 --- a/src/xiaomi_ble/events.py +++ b/src/xiaomi_ble/events.py @@ -1,4 +1,5 @@ """Event constants for xiaomi-ble.""" + from __future__ import annotations from sensor_state_data.enum import StrEnum diff --git a/src/xiaomi_ble/locks.py b/src/xiaomi_ble/locks.py index 8410a27..283bfcc 100755 --- a/src/xiaomi_ble/locks.py +++ b/src/xiaomi_ble/locks.py @@ -1,4 +1,5 @@ """Constants for Xiaomi Locks.""" + from enum import Enum diff --git a/src/xiaomi_ble/parser.py b/src/xiaomi_ble/parser.py index b764d23..df08e52 100644 --- a/src/xiaomi_ble/parser.py +++ b/src/xiaomi_ble/parser.py @@ -3,6 +3,7 @@ https://github.com/Ernst79/bleparser/blob/c42ae922e1abed2720c7fac993777e1bd59c0c93/package/bleparser/xiaomi.py MIT License applies. """ + from __future__ import annotations import datetime diff --git a/tests/test_parser.py b/tests/test_parser.py index 05eb95f..4bf8110 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -1,4 +1,5 @@ """The tests for the Xiaomi ble parser.""" + import logging from unittest.mock import patch