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

Classes

class  DevoloSwitchEntity
 
class  DevoloSwitchEntityDescription
 

Functions

None __init__ (self, DevoloHomeNetworkConfigEntry entry, DevoloDataUpdateCoordinator[_DataT] coordinator, DevoloSwitchEntityDescription[_DataT] description)
 
None async_setup_entry (HomeAssistant hass, DevoloHomeNetworkConfigEntry entry, AddEntitiesCallback async_add_entities)
 
None async_turn_off (self, **Any kwargs)
 
None async_turn_on (self, **Any kwargs)
 
bool is_on (self)
 

Variables

 _DataType
 
 coordinators = entry.runtime_data.coordinators
 
 device = entry.runtime_data.device
 
 entity_category
 
 entity_description
 
 is_on_func
 
 key
 
int PARALLEL_UPDATES = 0
 
 turn_off_func
 
 turn_on_func
 

Detailed Description

Platform for switch integration.

Function Documentation

◆ __init__()

None homeassistant.components.devolo_home_network.switch.__init__ (   self,
DevoloHomeNetworkConfigEntry  entry,
DevoloDataUpdateCoordinator[_DataT]  coordinator,
DevoloSwitchEntityDescription[_DataT]  description 
)
Representation of a devolo switch.
Initialize entity.

Definition at line 91 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.devolo_home_network.switch.async_setup_entry ( HomeAssistant  hass,
DevoloHomeNetworkConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)

Definition at line 55 of file switch.py.

◆ async_turn_off()

None homeassistant.components.devolo_home_network.switch.async_turn_off (   self,
**Any  kwargs 
)
Turn the entity off.

Definition at line 121 of file switch.py.

◆ async_turn_on()

None homeassistant.components.devolo_home_network.switch.async_turn_on (   self,
**Any  kwargs 
)
Turn the entity on.

Definition at line 106 of file switch.py.

◆ is_on()

bool homeassistant.components.devolo_home_network.switch.is_on (   self)
State of the switch.

Definition at line 102 of file switch.py.

Variable Documentation

◆ _DataType

homeassistant.components.devolo_home_network.switch._DataType
private

Definition at line 26 of file switch.py.

◆ coordinators

homeassistant.components.devolo_home_network.switch.coordinators = entry.runtime_data.coordinators

Definition at line 62 of file switch.py.

◆ device

homeassistant.components.devolo_home_network.switch.device = entry.runtime_data.device
Get all devices and sensors and setup them via config entry.

Definition at line 61 of file switch.py.

◆ entity_category

homeassistant.components.devolo_home_network.switch.entity_category

Definition at line 47 of file switch.py.

◆ entity_description

homeassistant.components.devolo_home_network.switch.entity_description

Definition at line 98 of file switch.py.

◆ is_on_func

homeassistant.components.devolo_home_network.switch.is_on_func

Definition at line 41 of file switch.py.

◆ key

homeassistant.components.devolo_home_network.switch.key
Describes devolo switch entity.

Definition at line 40 of file switch.py.

◆ PARALLEL_UPDATES

int homeassistant.components.devolo_home_network.switch.PARALLEL_UPDATES = 0

Definition at line 24 of file switch.py.

◆ turn_off_func

homeassistant.components.devolo_home_network.switch.turn_off_func

Definition at line 43 of file switch.py.

◆ turn_on_func

homeassistant.components.devolo_home_network.switch.turn_on_func

Definition at line 42 of file switch.py.