Namespaces | |
| climate | |
| config_flow | |
| const | |
| coordinator | |
| entity | |
| lock | |
| sensor | |
| switch | |
| vacuum | |
Classes | |
| class | SwitchbotCloudData |
| class | SwitchbotDevices |
Functions | |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry config) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| SwitchbotDevices | make_device_data (HomeAssistant hass, SwitchBotAPI api, list[Device|Remote] devices, dict[str, SwitchBotCoordinator] coordinators_by_id) |
| tuple[Device|Remote, SwitchBotCoordinator] | prepare_device (HomeAssistant hass, SwitchBotAPI api, Device|Remote device, dict[str, SwitchBotCoordinator] coordinators_by_id) |
Variables | |
| _LOGGER = getLogger(__name__) | |
SwitchBot via API integration.
| bool homeassistant.components.switchbot_cloud.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config | ||
| ) |
Set up SwitchBot via API from a config entry.
Definition at line 112 of file __init__.py.
| bool homeassistant.components.switchbot_cloud.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 140 of file __init__.py.
| SwitchbotDevices homeassistant.components.switchbot_cloud.make_device_data | ( | HomeAssistant | hass, |
| SwitchBotAPI | api, | ||
| list[Device | Remote] | devices, | ||
| dict[str, SwitchBotCoordinator] | coordinators_by_id | ||
| ) |
Make device data.
Definition at line 61 of file __init__.py.
| tuple[Device | Remote, SwitchBotCoordinator] homeassistant.components.switchbot_cloud.prepare_device | ( | HomeAssistant | hass, |
| SwitchBotAPI | api, | ||
| Device | Remote | device, | ||
| dict[str, SwitchBotCoordinator] | coordinators_by_id | ||
| ) |
Instantiate coordinator and adds to list for gathering.
Definition at line 47 of file __init__.py.
|
private |
Definition at line 17 of file __init__.py.