Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.wemo.WemoDiscovery Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, WemoDispatcher wemo_dispatcher, Sequence[HostPortTuple] static_config, ConfigEntry entry)
 
None async_discover_and_schedule (self, datetime|None event_time=None)
 
None async_stop_discovery (self)
 
None discover_statics (self)
 

Static Public Attributes

int ADDITIONAL_SECONDS_BETWEEN_SCANS = 10
 
int MAX_SECONDS_BETWEEN_SCANS = 300
 

Private Member Functions

None _async_discover_and_schedule_callback (self, datetime event_time)
 

Private Attributes

 _discover_job
 
 _entry
 
 _hass
 
 _scan_delay
 
 _static_config
 
 _stop
 
 _wemo_dispatcher
 

Detailed Description

Use SSDP to discover WeMo devices.

Definition at line 244 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.wemo.WemoDiscovery.__init__ (   self,
HomeAssistant  hass,
WemoDispatcher  wemo_dispatcher,
Sequence[HostPortTuple static_config,
ConfigEntry  entry 
)
Initialize the WemoDiscovery.

Definition at line 250 of file __init__.py.

Member Function Documentation

◆ _async_discover_and_schedule_callback()

None homeassistant.components.wemo.WemoDiscovery._async_discover_and_schedule_callback (   self,
datetime  event_time 
)
private
Run the periodic background scanning.

Definition at line 293 of file __init__.py.

◆ async_discover_and_schedule()

None homeassistant.components.wemo.WemoDiscovery.async_discover_and_schedule (   self,
datetime | None   event_time = None 
)
Periodically scan the network looking for WeMo devices.

Definition at line 266 of file __init__.py.

◆ async_stop_discovery()

None homeassistant.components.wemo.WemoDiscovery.async_stop_discovery (   self)
Stop the periodic background scanning.

Definition at line 303 of file __init__.py.

◆ discover_statics()

None homeassistant.components.wemo.WemoDiscovery.discover_statics (   self)
Initialize or Re-Initialize connections to statically configured devices.

Definition at line 309 of file __init__.py.

Member Data Documentation

◆ _discover_job

homeassistant.components.wemo.WemoDiscovery._discover_job
private

Definition at line 285 of file __init__.py.

◆ _entry

homeassistant.components.wemo.WemoDiscovery._entry
private

Definition at line 264 of file __init__.py.

◆ _hass

homeassistant.components.wemo.WemoDiscovery._hass
private

Definition at line 258 of file __init__.py.

◆ _scan_delay

homeassistant.components.wemo.WemoDiscovery._scan_delay
private

Definition at line 261 of file __init__.py.

◆ _static_config

homeassistant.components.wemo.WemoDiscovery._static_config
private

Definition at line 262 of file __init__.py.

◆ _stop

homeassistant.components.wemo.WemoDiscovery._stop
private

Definition at line 286 of file __init__.py.

◆ _wemo_dispatcher

homeassistant.components.wemo.WemoDiscovery._wemo_dispatcher
private

Definition at line 259 of file __init__.py.

◆ ADDITIONAL_SECONDS_BETWEEN_SCANS

int homeassistant.components.wemo.WemoDiscovery.ADDITIONAL_SECONDS_BETWEEN_SCANS = 10
static

Definition at line 247 of file __init__.py.

◆ MAX_SECONDS_BETWEEN_SCANS

int homeassistant.components.wemo.WemoDiscovery.MAX_SECONDS_BETWEEN_SCANS = 300
static

Definition at line 248 of file __init__.py.


The documentation for this class was generated from the following file: