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

Classes

class  NetgearAllowBlock
 
class  NetgearRouterSwitchEntity
 
class  NetgearSwitchEntityDescription
 
class  NetgearSwitchEntityDescriptionRequired
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list ROUTER_SWITCH_TYPES
 
 SCAN_INTERVAL = timedelta(seconds=300)
 
list SWITCH_TYPES
 

Detailed Description

Support for Netgear switches.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.netgear.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up switches for Netgear component.

Definition at line 101 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 22 of file switch.py.

◆ ROUTER_SWITCH_TYPES

list homeassistant.components.netgear.switch.ROUTER_SWITCH_TYPES

Definition at line 48 of file switch.py.

◆ SCAN_INTERVAL

homeassistant.components.netgear.switch.SCAN_INTERVAL = timedelta(seconds=300)

Definition at line 24 of file switch.py.

◆ SWITCH_TYPES

list homeassistant.components.netgear.switch.SWITCH_TYPES
Initial value:
1 = [
2  SwitchEntityDescription(
3  key="allow_or_block",
4  translation_key="allowed_on_network",
5  entity_category=EntityCategory.CONFIG,
6  )
7 ]

Definition at line 26 of file switch.py.