Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, aiounifi.Controller api)
 
None queue_poe_command (self, str device_id, int port_idx, str poe_mode)
 
None reset (self)
 

Public Attributes

 api
 
 hass
 

Static Public Attributes

int COMMAND_DELAY = 5
 

Private Attributes

 _cancel_command
 

Detailed Description

UniFi Device command helper class.

Definition at line 117 of file entity_helper.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.__init__ (   self,
HomeAssistant  hass,
aiounifi.Controller  api 
)
Initialize device command helper.

Definition at line 122 of file entity_helper.py.

Member Function Documentation

◆ queue_poe_command()

None homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.queue_poe_command (   self,
str  device_id,
int  port_idx,
str  poe_mode 
)
Queue commands to execute them together per device.

Definition at line 138 of file entity_helper.py.

◆ reset()

None homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.reset (   self)
Cancel timers.

Definition at line 131 of file entity_helper.py.

Member Data Documentation

◆ _cancel_command

homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand._cancel_command
private

Definition at line 135 of file entity_helper.py.

◆ api

homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.api

Definition at line 125 of file entity_helper.py.

◆ COMMAND_DELAY

int homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.COMMAND_DELAY = 5
static

Definition at line 120 of file entity_helper.py.

◆ hass

homeassistant.components.unifi.hub.entity_helper.UnifiDeviceCommand.hass

Definition at line 124 of file entity_helper.py.


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