Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.hue.bridge.HueBridge Class Reference

Public Member Functions

None __init__ (self, core.HomeAssistant hass, ConfigEntry config_entry)
 
int api_version (self)
 
bool async_initialize_bridge (self)
 
Any async_request_call (self, Callable task, *args, **kwargs)
 
bool async_reset (self)
 
None handle_unauthorized_error (self)
 
str host (self)
 

Public Attributes

 api
 
 api_version
 
 authorized
 
 config_entry
 
 hass
 
 logger
 
 sensor_manager
 

Detailed Description

Manages a single Hue bridge.

Definition at line 40 of file bridge.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.hue.bridge.HueBridge.__init__ (   self,
core.HomeAssistant  hass,
ConfigEntry  config_entry 
)
Initialize the system.

Definition at line 43 of file bridge.py.

Member Function Documentation

◆ api_version()

int homeassistant.components.hue.bridge.HueBridge.api_version (   self)
Return api version we're set-up for.

Definition at line 69 of file bridge.py.

◆ async_initialize_bridge()

bool homeassistant.components.hue.bridge.HueBridge.async_initialize_bridge (   self)
Initialize Connection with the Hue API.

Definition at line 73 of file bridge.py.

◆ async_request_call()

Any homeassistant.components.hue.bridge.HueBridge.async_request_call (   self,
Callable  task,
args,
**  kwargs 
)
Send request to the Hue bridge.

Definition at line 125 of file bridge.py.

◆ async_reset()

bool homeassistant.components.hue.bridge.HueBridge.async_reset (   self)
Reset this bridge to default state.

Will cancel any scheduled setup retry and will unload
the config entry.

Definition at line 143 of file bridge.py.

◆ handle_unauthorized_error()

None homeassistant.components.hue.bridge.HueBridge.handle_unauthorized_error (   self)
Create a new config flow when the authorization is no longer valid.

Definition at line 170 of file bridge.py.

◆ host()

str homeassistant.components.hue.bridge.HueBridge.host (   self)
Return the host of this bridge.

Definition at line 64 of file bridge.py.

Member Data Documentation

◆ api

homeassistant.components.hue.bridge.HueBridge.api

Definition at line 55 of file bridge.py.

◆ api_version

homeassistant.components.hue.bridge.HueBridge.api_version

Definition at line 54 of file bridge.py.

◆ authorized

homeassistant.components.hue.bridge.HueBridge.authorized

Definition at line 47 of file bridge.py.

◆ config_entry

homeassistant.components.hue.bridge.HueBridge.config_entry

Definition at line 45 of file bridge.py.

◆ hass

homeassistant.components.hue.bridge.HueBridge.hass

Definition at line 46 of file bridge.py.

◆ logger

homeassistant.components.hue.bridge.HueBridge.logger

Definition at line 51 of file bridge.py.

◆ sensor_manager

homeassistant.components.hue.bridge.HueBridge.sensor_manager

Definition at line 107 of file bridge.py.


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