Home Assistant Unofficial Reference 2024.12.1
discovery.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.mqtt.discovery.MQTTDiscoveryPayload
 
class  homeassistant.components.mqtt.discovery.MQTTIntegrationDiscoveryConfig
 

Namespaces

 homeassistant.components.mqtt.discovery
 

Functions

bool homeassistant.components.mqtt.discovery._async_process_discovery_migration (MQTTDiscoveryPayload payload)
 
MQTTDiscoveryPayload homeassistant.components.mqtt.discovery._generate_device_config (HomeAssistant hass, str object_id, str|None node_id, bool migrate_discovery=False)
 
None homeassistant.components.mqtt.discovery._merge_common_device_options (MQTTDiscoveryPayload component_config, dict[str, Any] device_config)
 
MQTTDiscoveryPayload homeassistant.components.mqtt.discovery._parse_device_payload (HomeAssistant hass, ReceivePayloadType payload, str object_id, str|None node_id)
 
None homeassistant.components.mqtt.discovery._replace_abbreviations (dict[str, Any]|str payload, dict[str, str] abbreviations, set[str] abbreviations_set)
 
None homeassistant.components.mqtt.discovery._replace_all_abbreviations (dict[str, Any] discovery_payload, bool component_only=False)
 
None homeassistant.components.mqtt.discovery._replace_topic_base (MQTTDiscoveryPayload discovery_payload)
 
bool homeassistant.components.mqtt.discovery._valid_origin_info (MQTTDiscoveryPayload discovery_payload)
 
None homeassistant.components.mqtt.discovery.async_log_discovery_origin_info (str message, MQTTDiscoveryPayload discovery_payload, int level=logging.INFO)
 
None homeassistant.components.mqtt.discovery.async_start (HomeAssistant hass, str discovery_topic, ConfigEntry config_entry)
 
None homeassistant.components.mqtt.discovery.async_stop (HomeAssistant hass)
 
None homeassistant.components.mqtt.discovery.clear_discovery_hash (HomeAssistant hass, tuple[str, str] discovery_hash)
 
str homeassistant.components.mqtt.discovery.get_origin_log_string (MQTTDiscoveryPayload discovery_payload, *bool include_url)
 
str|None homeassistant.components.mqtt.discovery.get_origin_support_url (MQTTDiscoveryPayload discovery_payload)
 
None homeassistant.components.mqtt.discovery.set_discovery_hash (HomeAssistant hass, tuple[str, str] discovery_hash)
 

Variables

 homeassistant.components.mqtt.discovery._LOGGER = logging.getLogger(__name__)
 
 homeassistant.components.mqtt.discovery.ABBREVIATIONS_SET = set(ABBREVIATIONS)
 
string homeassistant.components.mqtt.discovery.CONF_MIGRATE_DISCOVERY = "migrate_discovery"
 
 homeassistant.components.mqtt.discovery.DEVICE_ABBREVIATIONS_SET = set(DEVICE_ABBREVIATIONS)
 
 homeassistant.components.mqtt.discovery.MIGRATE_DISCOVERY_SCHEMA
 
 homeassistant.components.mqtt.discovery.ORIGIN_ABBREVIATIONS_SET = set(ORIGIN_ABBREVIATIONS)
 
string homeassistant.components.mqtt.discovery.TOPIC_BASE = "~"
 
 homeassistant.components.mqtt.discovery.TOPIC_MATCHER