added AES support, hardened connection setup

This commit is contained in:
patman15
2024-08-27 21:55:26 +02:00
parent 9a03567f70
commit 8e929f191e
6 changed files with 156 additions and 79 deletions

View File

@@ -1,8 +1,9 @@
"""Constants for the BLE Battery Management System integration."""
import logging
from typing import Final
from bleak.uuids import normalize_uuid_str
# from bleak.uuids import normalize_uuid_str
# from homeassistant.const import ( # noqa: F401
# ATTR_BATTERY_CHARGING,
@@ -12,11 +13,12 @@ from bleak.uuids import normalize_uuid_str
# )
DOMAIN = "hunterdouglas_powerview_ble"
LOGGER = logging.getLogger(__package__)
UUID = normalize_uuid_str("fdc1")
MFCT_ID = 2073
TIMEOUT = 15
DOMAIN: Final = "hunterdouglas_powerview_ble"
LOGGER: Final = logging.getLogger(__package__)
MFCT_ID: Final = 2073
TIMEOUT: Final = 15
HOME_KEY: Final = b""
# attributes (do not change)
ATTR_RSSI = "rssi"