Home Assistant Unofficial Reference 2024.12.1
device.py
Go to the documentation of this file.
1 """Support for Kegtron devices."""
2 
3 from __future__ import annotations
4 
5 import logging
6 
7 from kegtron_ble import DeviceKey
8 
10  PassiveBluetoothEntityKey,
11 )
12 
13 _LOGGER = logging.getLogger(__name__)
14 
15 
17  device_key: DeviceKey,
18 ) -> PassiveBluetoothEntityKey:
19  """Convert a device key to an entity key."""
20  return PassiveBluetoothEntityKey(device_key.key, device_key.device_id)
PassiveBluetoothEntityKey device_key_to_bluetooth_entity_key(DeviceKey device_key)
Definition: device.py:18