Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.onewire.onewirehub.OneWireHub Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass)
 
None connect (self, str host, int port)
 
None discover_devices (self)
 
None initialize (self, ConfigEntry config_entry)
 

Public Attributes

 devices
 
 hass
 
 owproxy
 

Private Member Functions

list[OWDeviceDescription_discover_devices (self, str path="/", str|None parent_id=None)
 
str|None _get_device_type (self, str device_path)
 

Detailed Description

Hub to communicate with server.

Definition at line 55 of file onewirehub.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.onewire.onewirehub.OneWireHub.__init__ (   self,
HomeAssistant  hass 
)
Hub to communicate with server.
Initialize.

Definition at line 58 of file onewirehub.py.

Member Function Documentation

◆ _discover_devices()

list[OWDeviceDescription] homeassistant.components.onewire.onewirehub.OneWireHub._discover_devices (   self,
str   path = "/",
str | None   parent_id = None 
)
private
Discover all server devices.

Definition at line 102 of file onewirehub.py.

◆ _get_device_type()

str | None homeassistant.components.onewire.onewirehub.OneWireHub._get_device_type (   self,
str  device_path 
)
private
Get device model.

Definition at line 147 of file onewirehub.py.

◆ connect()

None homeassistant.components.onewire.onewirehub.OneWireHub.connect (   self,
str  host,
int  port 
)
Connect to the server.

Definition at line 64 of file onewirehub.py.

◆ discover_devices()

None homeassistant.components.onewire.onewirehub.OneWireHub.discover_devices (   self)
Discover all devices.

Definition at line 95 of file onewirehub.py.

◆ initialize()

None homeassistant.components.onewire.onewirehub.OneWireHub.initialize (   self,
ConfigEntry  config_entry 
)
Initialize a config entry.

Definition at line 73 of file onewirehub.py.

Member Data Documentation

◆ devices

homeassistant.components.onewire.onewirehub.OneWireHub.devices

Definition at line 98 of file onewirehub.py.

◆ hass

homeassistant.components.onewire.onewirehub.OneWireHub.hass

Definition at line 60 of file onewirehub.py.

◆ owproxy

homeassistant.components.onewire.onewirehub.OneWireHub.owproxy

Definition at line 67 of file onewirehub.py.


The documentation for this class was generated from the following file: