Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.motionblinds_ble.config_flow Namespace Reference

Classes

class  CouldNotFindMotor
 
class  FlowHandler
 
class  InvalidMACCode
 
class  NoBluetoothAdapter
 
class  NoDevicesFound
 
class  OptionsFlowHandler
 

Functions

str|None get_mac_from_local_name (str data)
 
bool is_valid_mac (str data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 CONFIG_SCHEMA = vol.Schema({vol.Required(CONF_MAC_CODE): str})
 
dictionary EXCEPTION_MAP
 

Detailed Description

Config flow for Motionblinds Bluetooth integration.

Function Documentation

◆ get_mac_from_local_name()

str | None homeassistant.components.motionblinds_ble.config_flow.get_mac_from_local_name ( str  data)
Get the MAC address from the bluetooth local name.

Definition at line 236 of file config_flow.py.

◆ is_valid_mac()

bool homeassistant.components.motionblinds_ble.config_flow.is_valid_mac ( str  data)
Validate the provided MAC address.

Definition at line 229 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.motionblinds_ble.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 43 of file config_flow.py.

◆ CONFIG_SCHEMA

homeassistant.components.motionblinds_ble.config_flow.CONFIG_SCHEMA = vol.Schema({vol.Required(CONF_MAC_CODE): str})

Definition at line 45 of file config_flow.py.

◆ EXCEPTION_MAP

dictionary homeassistant.components.motionblinds_ble.config_flow.EXCEPTION_MAP
Initial value:
1 = {
2  NoBluetoothAdapter: ERROR_NO_BLUETOOTH_ADAPTER,
3  NoDevicesFound: ERROR_NO_DEVICES_FOUND,
4  CouldNotFindMotor: ERROR_COULD_NOT_FIND_MOTOR,
5  InvalidMACCode: ERROR_INVALID_MAC_CODE,
6 }

Definition at line 260 of file config_flow.py.