Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.elkm1.discovery Namespace Reference

Functions

str _short_mac (str mac_address)
 
ElkSystem|None async_discover_device (HomeAssistant hass, str host)
 
list[ElkSystem] async_discover_devices (HomeAssistant hass, int timeout, str|None address=None)
 
None async_trigger_discovery (HomeAssistant hass, list[ElkSystem] discovered_devices)
 
bool async_update_entry_from_discovery (HomeAssistant hass, config_entries.ConfigEntry entry, ElkSystem device)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

The elkm1 integration discovery.

Function Documentation

◆ _short_mac()

str homeassistant.components.elkm1.discovery._short_mac ( str  mac_address)
private

Definition at line 21 of file discovery.py.

◆ async_discover_device()

ElkSystem | None homeassistant.components.elkm1.discovery.async_discover_device ( HomeAssistant  hass,
str  host 
)
Direct discovery at a single ip instead of broadcast.

Definition at line 78 of file discovery.py.

◆ async_discover_devices()

list[ElkSystem] homeassistant.components.elkm1.discovery.async_discover_devices ( HomeAssistant  hass,
int  timeout,
str | None   address = None 
)
Discover elkm1 devices.

Definition at line 41 of file discovery.py.

◆ async_trigger_discovery()

None homeassistant.components.elkm1.discovery.async_trigger_discovery ( HomeAssistant  hass,
list[ElkSystem]  discovered_devices 
)
Trigger config flows for discovered devices.

Definition at line 89 of file discovery.py.

◆ async_update_entry_from_discovery()

bool homeassistant.components.elkm1.discovery.async_update_entry_from_discovery ( HomeAssistant  hass,
config_entries.ConfigEntry  entry,
ElkSystem  device 
)
Update a config entry from a discovery.

Definition at line 26 of file discovery.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.elkm1.discovery._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file discovery.py.