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

Classes

class  MyUplinkDevicePointSwitch
 

Functions

None async_setup_entry (HomeAssistant hass, MyUplinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
SwitchEntityDescription|None get_description (DevicePoint device_point)
 

Variables

 key
 
 translation_key
 

Detailed Description

Switch entity for myUplink.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.myuplink.switch.async_setup_entry ( HomeAssistant  hass,
MyUplinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up myUplink switch.

Definition at line 55 of file switch.py.

◆ get_description()

SwitchEntityDescription | None homeassistant.components.myuplink.switch.get_description ( DevicePoint  device_point)
Get description for a device point.

Priorities:
1. Category specific prefix e.g "NIBEF"
2. Default to None

Definition at line 43 of file switch.py.

Variable Documentation

◆ key

homeassistant.components.myuplink.switch.key

Definition at line 22 of file switch.py.

◆ translation_key

homeassistant.components.myuplink.switch.translation_key

Definition at line 23 of file switch.py.