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

Classes

class  RelaySwitch
 

Functions

NASwebOutput|None _get_output (NASwebCoordinator coordinator, int index)
 
None async_setup_entry (HomeAssistant hass, NASwebConfigEntry config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string OUTPUT_TRANSLATION_KEY = "switch_output"
 

Detailed Description

Platform for NASweb output.

Function Documentation

◆ _get_output()

NASwebOutput | None homeassistant.components.nasweb.switch._get_output ( NASwebCoordinator  coordinator,
int  index 
)
private

Definition at line 31 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.nasweb.switch.async_setup_entry ( HomeAssistant  hass,
NASwebConfigEntry  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up switch platform.

Definition at line 38 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 28 of file switch.py.

◆ OUTPUT_TRANSLATION_KEY

string homeassistant.components.nasweb.switch.OUTPUT_TRANSLATION_KEY = "switch_output"

Definition at line 26 of file switch.py.