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

Classes

class  OneWireSwitch
 
class  OneWireSwitchEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, OneWireConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
list[OneWireSwitchget_entities (OneWireHub onewire_hub)
 
dict[str, tuple[OneWireEntityDescription,...]] get_sensor_types (str device_sub_type)
 

Detailed Description

Support for 1-Wire environment switches.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.onewire.switch.async_setup_entry ( HomeAssistant  hass,
OneWireConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up 1-Wire platform.

Definition at line 150 of file switch.py.

◆ get_entities()

list[OneWireSwitch] homeassistant.components.onewire.switch.get_entities ( OneWireHub  onewire_hub)
Get a list of entities.

Definition at line 162 of file switch.py.

◆ get_sensor_types()

dict[str, tuple[OneWireEntityDescription, ...]] homeassistant.components.onewire.switch.get_sensor_types ( str  device_sub_type)
Return the proper info array for the device type.

Definition at line 141 of file switch.py.