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
9
from
homeassistant.components.bluetooth.passive_update_processor
import
(
10
PassiveBluetoothEntityKey,
11
)
12
13
_LOGGER = logging.getLogger(__name__)
14
15
16
def
device_key_to_bluetooth_entity_key
(
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)
homeassistant.components.bluetooth.passive_update_processor.PassiveBluetoothEntityKey
Definition:
passive_update_processor.py:48
homeassistant.components.bluetooth.passive_update_processor
Definition:
passive_update_processor.py:1
homeassistant.components.kegtron.device.device_key_to_bluetooth_entity_key
PassiveBluetoothEntityKey device_key_to_bluetooth_entity_key(DeviceKey device_key)
Definition:
device.py:18
core
homeassistant
components
kegtron
device.py
Generated by
1.9.1