Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, ConfigEntry config_entry)
 
None async_process_events (self, CrownstoneSSEAsync sse_client)
 
bool async_setup (self)
 
None async_setup_usb (self)
 
bool async_unload (self)
 
None on_shutdown (self, Event _)
 

Public Attributes

 cloud
 
 config_entry
 
 hass
 
 sse
 
 uart
 
 usb_sphere_id
 

Static Public Attributes

 None
 

Detailed Description

Manage a Crownstone config entry.

Definition at line 40 of file entry_manager.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.__init__ (   self,
HomeAssistant  hass,
ConfigEntry  config_entry 
)
Initialize the hub.

Definition at line 47 of file entry_manager.py.

Member Function Documentation

◆ async_process_events()

None homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.async_process_events (   self,
CrownstoneSSEAsync  sse_client 
)
Asynchronous iteration of Crownstone SSE events.

Definition at line 117 of file entry_manager.py.

◆ async_setup()

bool homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.async_setup (   self)
Set up a Crownstone config entry.

Returns True if the setup was successful.

Definition at line 54 of file entry_manager.py.

◆ async_setup_usb()

None homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.async_setup_usb (   self)
Attempt setup of a Crownstone usb dongle.

Definition at line 124 of file entry_manager.py.

◆ async_unload()

bool homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.async_unload (   self)
Unload the current config entry.

Definition at line 164 of file entry_manager.py.

◆ on_shutdown()

None homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.on_shutdown (   self,
Event  _ 
)
Close all IO connections.

Definition at line 189 of file entry_manager.py.

Member Data Documentation

◆ cloud

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.cloud

Definition at line 62 of file entry_manager.py.

◆ config_entry

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.config_entry

Definition at line 50 of file entry_manager.py.

◆ hass

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.hass

Definition at line 49 of file entry_manager.py.

◆ None

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.None
static

Definition at line 43 of file entry_manager.py.

◆ sse

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.sse

Definition at line 82 of file entry_manager.py.

◆ uart

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.uart

Definition at line 133 of file entry_manager.py.

◆ usb_sphere_id

homeassistant.components.crownstone.entry_manager.CrownstoneEntryManager.usb_sphere_id

Definition at line 101 of file entry_manager.py.


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