Home Assistant Unofficial Reference 2024.12.1
device.py
Go to the documentation of this file.
1 """Support for ThermoBeacon devices."""
2 
3 from __future__ import annotations
4 
5 from thermobeacon_ble import DeviceKey
6 
8  PassiveBluetoothEntityKey,
9 )
10 
11 
13  device_key: DeviceKey,
14 ) -> PassiveBluetoothEntityKey:
15  """Convert a device key to an entity key."""
16  return PassiveBluetoothEntityKey(device_key.key, device_key.device_id)
PassiveBluetoothEntityKey device_key_to_bluetooth_entity_key(DeviceKey device_key)
Definition: device.py:14