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

Classes

class  FritzBoxBaseCoordinatorSwitch
 
class  FritzBoxBaseSwitch
 
class  FritzBoxDeflectionSwitch
 
class  FritzBoxPortSwitch
 
class  FritzBoxProfileSwitch
 
class  FritzBoxWifiSwitch
 

Functions

list[FritzBoxDeflectionSwitch_async_deflection_entities_list (AvmWrapper avm_wrapper, str device_friendly_name)
 
list[FritzBoxPortSwitch_async_port_entities_list (AvmWrapper avm_wrapper, str device_friendly_name, str local_ip)
 
list[FritzBoxProfileSwitch_async_profile_entities_list (AvmWrapper avm_wrapper, FritzData data_fritz)
 
list[FritzBoxWifiSwitch_async_wifi_entities_list (AvmWrapper avm_wrapper, str device_friendly_name)
 
list[Entityasync_all_entities_list (AvmWrapper avm_wrapper, str device_friendly_name, FritzData data_fritz, str local_ip)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Switches for AVM Fritz!Box functions.

Function Documentation

◆ _async_deflection_entities_list()

list[FritzBoxDeflectionSwitch] homeassistant.components.fritz.switch._async_deflection_entities_list ( AvmWrapper  avm_wrapper,
str   device_friendly_name 
)
private
Get list of deflection entities.

Definition at line 42 of file switch.py.

◆ _async_port_entities_list()

list[FritzBoxPortSwitch] homeassistant.components.fritz.switch._async_port_entities_list ( AvmWrapper  avm_wrapper,
str  device_friendly_name,
str   local_ip 
)
private
Get list of port forwarding entities.

Definition at line 59 of file switch.py.

◆ _async_profile_entities_list()

list[FritzBoxProfileSwitch] homeassistant.components.fritz.switch._async_profile_entities_list ( AvmWrapper  avm_wrapper,
FritzData  data_fritz 
)
private
Add new tracker entities from the AVM device.

Definition at line 172 of file switch.py.

◆ _async_wifi_entities_list()

list[FritzBoxWifiSwitch] homeassistant.components.fritz.switch._async_wifi_entities_list ( AvmWrapper  avm_wrapper,
str   device_friendly_name 
)
private
Get list of wifi entities.

Definition at line 122 of file switch.py.

◆ async_all_entities_list()

list[Entity] homeassistant.components.fritz.switch.async_all_entities_list ( AvmWrapper  avm_wrapper,
str  device_friendly_name,
FritzData  data_fritz,
str  local_ip 
)
Get a list of all entities.

Definition at line 203 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.fritz.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up entry.

Definition at line 222 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.fritz.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 39 of file switch.py.