Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.zeroconf.ZeroconfDiscovery Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, HaZeroconf zeroconf, dict[str, list[ZeroconfMatcher]] zeroconf_types, dict[str, HomeKitDiscoveredIntegration] homekit_model_lookups, dict[re.Pattern, HomeKitDiscoveredIntegration] homekit_model_matchers)
 
None async_service_update (self, HaZeroconf zeroconf, str service_type, str name, ServiceStateChange state_change)
 
None async_setup (self)
 
None async_stop (self)
 

Public Attributes

 async_service_browser
 
 hass
 
 homekit_model_lookups
 
 homekit_model_matchers
 
 zeroconf
 
 zeroconf_types
 

Private Member Functions

None _async_dismiss_discoveries (self, str name)
 
None _async_lookup_and_process_service_update (self, HaZeroconf zeroconf, AsyncServiceInfo async_service_info, str service_type, str name)
 
None _async_process_service_update (self, AsyncServiceInfo async_service_info, str service_type, str name)
 
None _async_service_update (self, HaZeroconf zeroconf, str service_type, str name)
 
None _handle_config_entry_removed (self, config_entries.ConfigEntry entry)
 

Detailed Description

Discovery via zeroconf.

Definition at line 349 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.zeroconf.ZeroconfDiscovery.__init__ (   self,
HomeAssistant  hass,
HaZeroconf  zeroconf,
dict[str, list[ZeroconfMatcher]]  zeroconf_types,
dict[str, HomeKitDiscoveredIntegration homekit_model_lookups,
dict[re.Pattern, HomeKitDiscoveredIntegration homekit_model_matchers 
)
Init discovery.

Definition at line 352 of file __init__.py.

Member Function Documentation

◆ _async_dismiss_discoveries()

None homeassistant.components.zeroconf.ZeroconfDiscovery._async_dismiss_discoveries (   self,
str  name 
)
private
Dismiss all discoveries for the given name.

Definition at line 409 of file __init__.py.

◆ _async_lookup_and_process_service_update()

None homeassistant.components.zeroconf.ZeroconfDiscovery._async_lookup_and_process_service_update (   self,
HaZeroconf  zeroconf,
AsyncServiceInfo  async_service_info,
str  service_type,
str  name 
)
private
Update and process a zeroconf update.

Definition at line 465 of file __init__.py.

◆ _async_process_service_update()

None homeassistant.components.zeroconf.ZeroconfDiscovery._async_process_service_update (   self,
AsyncServiceInfo  async_service_info,
str  service_type,
str   name 
)
private
Process a zeroconf update.

Definition at line 477 of file __init__.py.

◆ _async_service_update()

None homeassistant.components.zeroconf.ZeroconfDiscovery._async_service_update (   self,
HaZeroconf  zeroconf,
str  service_type,
str  name 
)
private
Service state added or changed.

Definition at line 440 of file __init__.py.

◆ _handle_config_entry_removed()

None homeassistant.components.zeroconf.ZeroconfDiscovery._handle_config_entry_removed (   self,
config_entries.ConfigEntry  entry 
)
private
Handle config entry changes.

Definition at line 396 of file __init__.py.

◆ async_service_update()

None homeassistant.components.zeroconf.ZeroconfDiscovery.async_service_update (   self,
HaZeroconf  zeroconf,
str  service_type,
str  name,
ServiceStateChange  state_change 
)
Service state changed.

Definition at line 418 of file __init__.py.

◆ async_setup()

None homeassistant.components.zeroconf.ZeroconfDiscovery.async_setup (   self)
Start discovery.

Definition at line 368 of file __init__.py.

◆ async_stop()

None homeassistant.components.zeroconf.ZeroconfDiscovery.async_stop (   self)
Cancel the service browser and stop processing the queue.

Definition at line 390 of file __init__.py.

Member Data Documentation

◆ async_service_browser

homeassistant.components.zeroconf.ZeroconfDiscovery.async_service_browser

Definition at line 380 of file __init__.py.

◆ hass

homeassistant.components.zeroconf.ZeroconfDiscovery.hass

Definition at line 361 of file __init__.py.

◆ homekit_model_lookups

homeassistant.components.zeroconf.ZeroconfDiscovery.homekit_model_lookups

Definition at line 364 of file __init__.py.

◆ homekit_model_matchers

homeassistant.components.zeroconf.ZeroconfDiscovery.homekit_model_matchers

Definition at line 365 of file __init__.py.

◆ zeroconf

homeassistant.components.zeroconf.ZeroconfDiscovery.zeroconf

Definition at line 362 of file __init__.py.

◆ zeroconf_types

homeassistant.components.zeroconf.ZeroconfDiscovery.zeroconf_types

Definition at line 363 of file __init__.py.


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