Files
core/homeassistant/components/chef_iq/device.py
T
2026-06-19 12:41:57 +02:00

15 lines
402 B
Python

"""Support for Chef iQ devices."""
from chefiq_ble import DeviceKey
from homeassistant.components.bluetooth.passive_update_processor import (
PassiveBluetoothEntityKey,
)
def device_key_to_bluetooth_entity_key(
device_key: DeviceKey,
) -> PassiveBluetoothEntityKey:
"""Convert a device key to an entity key."""
return PassiveBluetoothEntityKey(device_key.key, device_key.device_id)