Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tplink_omada.switch Namespace Reference

Classes

class  OmadaDevicePortSwitchEntity
 
class  OmadaDevicePortSwitchEntityDescription
 
class  OmadaGatewayPortConfigSwitchEntityDescription
 
class  OmadaGatewayPortStatusSwitchEntityDescription
 
class  OmadaSwitchPortSwitchEntityDescription
 

Functions

str _get_switch_port_base_name (OmadaSwitchPortDetails port)
 
None _wan_connect_disconnect (OmadaSiteClient client, OmadaDevice device, OmadaGatewayPortStatus port, bool enable, bool ipv6)
 
None async_setup_entry (HomeAssistant hass, OmadaConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 TCoordinator = TypeVar("TCoordinator", bound="OmadaCoordinator[Any]")
 
 TDevice = TypeVar("TDevice", bound="OmadaDevice")
 
 TPort = TypeVar("TPort")
 

Detailed Description

Support for TPLink Omada device toggle options.

Function Documentation

◆ _get_switch_port_base_name()

str homeassistant.components.tplink_omada.switch._get_switch_port_base_name ( OmadaSwitchPortDetails  port)
private
Get display name for a switch port.

Definition at line 95 of file switch.py.

◆ _wan_connect_disconnect()

None homeassistant.components.tplink_omada.switch._wan_connect_disconnect ( OmadaSiteClient  client,
OmadaDevice  device,
OmadaGatewayPortStatus  port,
bool  enable,
bool  ipv6 
)
private

Definition at line 165 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.tplink_omada.switch.async_setup_entry ( HomeAssistant  hass,
OmadaConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up switches.

Definition at line 37 of file switch.py.

Variable Documentation

◆ TCoordinator

homeassistant.components.tplink_omada.switch.TCoordinator = TypeVar("TCoordinator", bound="OmadaCoordinator[Any]")

Definition at line 34 of file switch.py.

◆ TDevice

homeassistant.components.tplink_omada.switch.TDevice = TypeVar("TDevice", bound="OmadaDevice")

Definition at line 33 of file switch.py.

◆ TPort

homeassistant.components.tplink_omada.switch.TPort = TypeVar("TPort")

Definition at line 32 of file switch.py.