Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.yalexs_ble.util Namespace Reference

Functions

BluetoothServiceInfoBleak|None async_find_existing_service_info (HomeAssistant hass, str local_name, str address)
 
BluetoothCallbackMatcher bluetooth_callback_matcher (str local_name, str address)
 
str human_readable_name (str|None name, str local_name, str address)
 
str short_address (str address)
 

Detailed Description

The yalexs_ble integration models.

Function Documentation

◆ async_find_existing_service_info()

BluetoothServiceInfoBleak | None homeassistant.components.yalexs_ble.util.async_find_existing_service_info ( HomeAssistant  hass,
str  local_name,
str   address 
)
Return the service info for the given local_name and address.

Definition at line 37 of file util.py.

◆ bluetooth_callback_matcher()

BluetoothCallbackMatcher homeassistant.components.yalexs_ble.util.bluetooth_callback_matcher ( str  local_name,
str   address 
)
Return a BluetoothCallbackMatcher for the given local_name and address.

Definition at line 21 of file util.py.

◆ human_readable_name()

str homeassistant.components.yalexs_ble.util.human_readable_name ( str | None  name,
str  local_name,
str  address 
)
Return a human readable name for the given name, local_name, and address.

Definition at line 57 of file util.py.

◆ short_address()

str homeassistant.components.yalexs_ble.util.short_address ( str  address)
Convert a Bluetooth address to a short address.

Definition at line 51 of file util.py.