Home Assistant Unofficial Reference
2024.12.1
device.py
Go to the documentation of this file.
1
"""Support for Mopeka devices."""
2
3
from
__future__
import
annotations
4
5
from
mopeka_iot_ble
import
DeviceKey
6
7
from
homeassistant.components.bluetooth.passive_update_processor
import
(
8
PassiveBluetoothEntityKey,
9
)
10
11
12
def
device_key_to_bluetooth_entity_key
(
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)
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.mopeka.device.device_key_to_bluetooth_entity_key
PassiveBluetoothEntityKey device_key_to_bluetooth_entity_key(DeviceKey device_key)
Definition:
device.py:14
core
homeassistant
components
mopeka
device.py
Generated by
1.9.1