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

Public Member Functions

None __init__ (self, ConfigEntry config_entry)
 
None async_add_unique_device (self, HomeAssistant hass, pywemo.WeMoDevice wemo)
 
None async_connect_platform (self, Platform platform, DispatchCallback dispatch)
 
bool async_unload_platforms (self, HomeAssistant hass)
 

Private Attributes

 _config_entry
 

Detailed Description

Dispatch WeMo devices to the correct platform.

Definition at line 168 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.wemo.WemoDispatcher.__init__ (   self,
ConfigEntry  config_entry 
)
Initialize the WemoDispatcher.

Definition at line 171 of file __init__.py.

Member Function Documentation

◆ async_add_unique_device()

None homeassistant.components.wemo.WemoDispatcher.async_add_unique_device (   self,
HomeAssistant  hass,
pywemo.WeMoDevice   wemo 
)
Add a WeMo device to hass if it has not already been added.

Definition at line 179 of file __init__.py.

◆ async_connect_platform()

None homeassistant.components.wemo.WemoDispatcher.async_connect_platform (   self,
Platform  platform,
DispatchCallback   dispatch 
)
Consider a platform as loaded and dispatch any backlog of discovered devices.

Definition at line 221 of file __init__.py.

◆ async_unload_platforms()

bool homeassistant.components.wemo.WemoDispatcher.async_unload_platforms (   self,
HomeAssistant  hass 
)
Forward the unloading of an entry to platforms.

Definition at line 235 of file __init__.py.

Member Data Documentation

◆ _config_entry

homeassistant.components.wemo.WemoDispatcher._config_entry
private

Definition at line 173 of file __init__.py.


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