Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge Class Reference
Inheritance diagram for homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge:
[legend]
Collaboration diagram for homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge:
[legend]

Public Member Functions

None __init__ (self, dict[str, Any] conf, dict[str, Any]|None options=None)
 
None async_connect (self)
 
None async_disconnect (self)
 
dict[str, dict[str, Any]] async_get_available_sensors (self)
 
dict[str, WrtDeviceasync_get_connected_devices (self)
 
bool is_connected (self)
 
- Public Member Functions inherited from homeassistant.components.asuswrt.bridge.AsusWrtBridge
None __init__ (self, str host)
 
str|None firmware (self)
 
str host (self)
 
str|None label_mac (self)
 
str|None model (self)
 

Private Member Functions

list[str] _get_available_temperature_sensors (self)
 
Any _get_bytes (self)
 
None _get_firmware (self)
 
None _get_label_mac (self)
 
Any _get_load_avg (self)
 
None _get_model (self)
 
dict[str, Any] _get_nvram_info (self, str info_type)
 
Any _get_rates (self)
 
Any _get_temperatures (self)
 

Static Private Member Functions

AsusWrtLegacy _get_api (dict[str, Any] conf, dict[str, Any]|None options=None)
 

Private Attributes

 _firmware
 
 _label_mac
 
 _model
 
 _protocol
 

Additional Inherited Members

- Static Public Member Functions inherited from homeassistant.components.asuswrt.bridge.AsusWrtBridge
AsusWrtBridge get_bridge (HomeAssistant hass, dict[str, Any] conf, dict[str, Any]|None options=None)
 

Detailed Description

The Bridge that use legacy library.

Definition at line 165 of file bridge.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.__init__ (   self,
dict[str, Any]  conf,
dict[str, Any] | None   options = None 
)
The Bridge that use legacy library.
Initialize Bridge.

Definition at line 168 of file bridge.py.

Member Function Documentation

◆ _get_api()

AsusWrtLegacy homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_api ( dict[str, Any]  conf,
dict[str, Any] | None   options = None 
)
staticprivate
Get the AsusWrtLegacy API.

Definition at line 177 of file bridge.py.

◆ _get_available_temperature_sensors()

list[str] homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_available_temperature_sensors (   self)
private
Check which temperature information is available on the router.

Definition at line 281 of file bridge.py.

◆ _get_bytes()

Any homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_bytes (   self)
private
Fetch byte information from the router.

Definition at line 287 of file bridge.py.

◆ _get_firmware()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_firmware (   self)
private
Get firmware information.

Definition at line 244 of file bridge.py.

◆ _get_label_mac()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_label_mac (   self)
private
Get label mac information.

Definition at line 238 of file bridge.py.

◆ _get_load_avg()

Any homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_load_avg (   self)
private
Fetch load average information from the router.

Definition at line 297 of file bridge.py.

◆ _get_model()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_model (   self)
private
Get model information.

Definition at line 253 of file bridge.py.

◆ _get_nvram_info()

dict[str, Any] homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_nvram_info (   self,
str  info_type 
)
private
Get AsusWrt router info from nvram.

Definition at line 226 of file bridge.py.

◆ _get_rates()

Any homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_rates (   self)
private
Fetch rates information from the router.

Definition at line 292 of file bridge.py.

◆ _get_temperatures()

Any homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._get_temperatures (   self)
private
Fetch temperatures information from the router.

Definition at line 302 of file bridge.py.

◆ async_connect()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.async_connect (   self)
Connect to the device.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 201 of file bridge.py.

◆ async_disconnect()

None homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.async_disconnect (   self)
Disconnect to the device.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 213 of file bridge.py.

◆ async_get_available_sensors()

dict[str, dict[str, Any]] homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.async_get_available_sensors (   self)
Return a dictionary of available sensors for this bridge.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 259 of file bridge.py.

◆ async_get_connected_devices()

dict[str, WrtDevice] homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.async_get_connected_devices (   self)
Get list of connected devices.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 218 of file bridge.py.

◆ is_connected()

bool homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge.is_connected (   self)
Get connected status.

Reimplemented from homeassistant.components.asuswrt.bridge.AsusWrtBridge.

Definition at line 197 of file bridge.py.

Member Data Documentation

◆ _firmware

homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._firmware
private

Definition at line 251 of file bridge.py.

◆ _label_mac

homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._label_mac
private

Definition at line 242 of file bridge.py.

◆ _model

homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._model
private

Definition at line 257 of file bridge.py.

◆ _protocol

homeassistant.components.asuswrt.bridge.AsusWrtLegacyBridge._protocol
private

Definition at line 215 of file bridge.py.


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