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

Classes

class  MyStromSwitch
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DEFAULT_NAME = "myStrom Switch"
 

Detailed Description

Support for myStrom switches/plugs.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.mystrom.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the myStrom entities.

Definition at line 23 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 20 of file switch.py.

◆ DEFAULT_NAME

string homeassistant.components.mystrom.switch.DEFAULT_NAME = "myStrom Switch"

Definition at line 18 of file switch.py.