Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, AsusWrtBridge api)
 
DataUpdateCoordinator get_coordinator (self, str sensor_type, Callable[[], Any]|None update_method=None)
 
bool update_device_count (self, int conn_devices)
 

Private Member Functions

dict[str, int] _get_connected_devices (self)
 

Private Attributes

 _api
 
 _connected_devices
 
 _hass
 

Detailed Description

Data handler for AsusWrt sensor.

Definition at line 53 of file router.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler.__init__ (   self,
HomeAssistant  hass,
AsusWrtBridge  api 
)
Initialize a AsusWrt sensor data handler.

Definition at line 56 of file router.py.

Member Function Documentation

◆ _get_connected_devices()

dict[str, int] homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler._get_connected_devices (   self)
private
Return number of connected devices.

Definition at line 62 of file router.py.

◆ get_coordinator()

DataUpdateCoordinator homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler.get_coordinator (   self,
str  sensor_type,
Callable[[], Any] | None   update_method = None 
)
Get the coordinator for a specific sensor type.

Definition at line 73 of file router.py.

◆ update_device_count()

bool homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler.update_device_count (   self,
int  conn_devices 
)
Update connected devices attribute.

Definition at line 66 of file router.py.

Member Data Documentation

◆ _api

homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler._api
private

Definition at line 59 of file router.py.

◆ _connected_devices

homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler._connected_devices
private

Definition at line 60 of file router.py.

◆ _hass

homeassistant.components.asuswrt.router.AsusWrtSensorDataHandler._hass
private

Definition at line 58 of file router.py.


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