Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dhcp.NetworkWatcher Class Reference
Inheritance diagram for homeassistant.components.dhcp.NetworkWatcher:
[legend]
Collaboration diagram for homeassistant.components.dhcp.NetworkWatcher:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, dict[str, dict[str, str]] address_data, DhcpMatchers integration_matchers)
 
None async_discover (self)
 
None async_start (self)
 
None async_start_discover (self, *Any _)
 
None async_stop (self)
 
- Public Member Functions inherited from homeassistant.components.dhcp.WatcherBase
None async_process_client (self, str ip_address, str hostname, str unformatted_mac_address, bool force=False)
 

Private Attributes

 _discover_hosts
 
 _discover_task
 
 _unsub
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.dhcp.WatcherBase
 hass
 

Detailed Description

Class to query ptr records routers.

Definition at line 308 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.dhcp.NetworkWatcher.__init__ (   self,
HomeAssistant  hass,
dict[str, dict[str, str]]  address_data,
DhcpMatchers  integration_matchers 
)
Initialize class.

Reimplemented from homeassistant.components.dhcp.WatcherBase.

Definition at line 311 of file __init__.py.

Member Function Documentation

◆ async_discover()

None homeassistant.components.dhcp.NetworkWatcher.async_discover (   self)
Process discovery.

Definition at line 351 of file __init__.py.

◆ async_start()

None homeassistant.components.dhcp.NetworkWatcher.async_start (   self)
Start scanning for new devices on the network.

Definition at line 331 of file __init__.py.

◆ async_start_discover()

None homeassistant.components.dhcp.NetworkWatcher.async_start_discover (   self,
*Any  _ 
)
Start a new discovery task if one is not running.

Definition at line 343 of file __init__.py.

◆ async_stop()

None homeassistant.components.dhcp.NetworkWatcher.async_stop (   self)
Stop scanning for new devices on the network.

Reimplemented from homeassistant.components.dhcp.WatcherBase.

Definition at line 323 of file __init__.py.

Member Data Documentation

◆ _discover_hosts

homeassistant.components.dhcp.NetworkWatcher._discover_hosts
private

Definition at line 333 of file __init__.py.

◆ _discover_task

homeassistant.components.dhcp.NetworkWatcher._discover_task
private

Definition at line 328 of file __init__.py.

◆ _unsub

homeassistant.components.dhcp.NetworkWatcher._unsub
private

Definition at line 334 of file __init__.py.


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