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

Classes

class  SwitchbotConfigFlow
 
class  SwitchbotOptionsFlowHandler
 

Functions

str format_unique_id (str address)
 
str name_from_discovery (SwitchBotAdvertisement discovery)
 
str short_address (str address)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Config flow for Switchbot.

Function Documentation

◆ format_unique_id()

str homeassistant.components.switchbot.config_flow.format_unique_id ( str  address)
Format the unique ID for a switchbot.

Definition at line 56 of file config_flow.py.

◆ name_from_discovery()

str homeassistant.components.switchbot.config_flow.name_from_discovery ( SwitchBotAdvertisement  discovery)
Get the name from a discovery.

Definition at line 67 of file config_flow.py.

◆ short_address()

str homeassistant.components.switchbot.config_flow.short_address ( str  address)
Convert a Bluetooth address to a short address.

Definition at line 61 of file config_flow.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 53 of file config_flow.py.