Classes | |
| class | EnsureJobAfterCooldown |
Functions | |
| None | async_create_certificate_temp_files (HomeAssistant hass, ConfigType config) |
| None | async_forward_entry_setup_and_setup_discovery (HomeAssistant hass, ConfigEntry config_entry, set[Platform|str] platforms, bool late=False) |
| bool | async_wait_for_mqtt_client (HomeAssistant hass) |
| bool | check_state_too_long (logging.Logger logger, str proposed_state, str entity_id, ReceiveMessage msg) |
| str|None | get_file_path (str option, str|None default=None) |
| str|None | migrate_certificate_file_to_content (str file_name_or_auto) |
| bool|None | mqtt_config_entry_enabled (HomeAssistant hass) |
| set[Platform|str] | platforms_from_config (list[ConfigType] config) |
| ConfigType | valid_birth_will (ConfigType config) |
| str | valid_publish_topic (Any topic) |
| int | valid_qos_schema (Any qos) |
| str | valid_subscribe_topic (Any topic) |
| template.Template | valid_subscribe_topic_template (Any value) |
| str | valid_topic (Any topic) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| _MQTT_WILL_BIRTH_SCHEMA | |
| _VALID_QOS_SCHEMA = vol.All(vol.Coerce(int), vol.In([0, 1, 2])) | |
| float | AVAILABILITY_TIMEOUT = 50.0 |
| string | TEMP_DIR_NAME = f"home-assistant-{DOMAIN}" |
Utility functions for the MQTT integration.
| None homeassistant.components.mqtt.util.async_create_certificate_temp_files | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
| None homeassistant.components.mqtt.util.async_forward_entry_setup_and_setup_discovery | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| set[Platform | str] | platforms, | ||
| bool | late = False |
||
| ) |
| bool homeassistant.components.mqtt.util.async_wait_for_mqtt_client | ( | HomeAssistant | hass | ) |
| bool homeassistant.components.mqtt.util.check_state_too_long | ( | logging.Logger | logger, |
| str | proposed_state, | ||
| str | entity_id, | ||
| ReceiveMessage | msg | ||
| ) |
| str | None homeassistant.components.mqtt.util.get_file_path | ( | str | option, |
| str | None | default = None |
||
| ) |
| str | None homeassistant.components.mqtt.util.migrate_certificate_file_to_content | ( | str | file_name_or_auto | ) |
| bool | None homeassistant.components.mqtt.util.mqtt_config_entry_enabled | ( | HomeAssistant | hass | ) |
| set[Platform | str] homeassistant.components.mqtt.util.platforms_from_config | ( | list[ConfigType] | config | ) |
| ConfigType homeassistant.components.mqtt.util.valid_birth_will | ( | ConfigType | config | ) |
| str homeassistant.components.mqtt.util.valid_publish_topic | ( | Any | topic | ) |
| int homeassistant.components.mqtt.util.valid_qos_schema | ( | Any | qos | ) |
| str homeassistant.components.mqtt.util.valid_subscribe_topic | ( | Any | topic | ) |
| template.Template homeassistant.components.mqtt.util.valid_subscribe_topic_template | ( | Any | value | ) |
| str homeassistant.components.mqtt.util.valid_topic | ( | Any | topic | ) |
Validate that this is a valid topic name/filter. This function is not cached and is not expected to be called directly outside of this module. It is not marked as protected only because its tested directly in test_util.py. If it gets used outside of valid_subscribe_topic and valid_publish_topic, it may need an lru_cache decorator or an lru_cache decorator on the function where its used.
|
private |
|
private |
|
private |
| float homeassistant.components.mqtt.util.AVAILABILITY_TIMEOUT = 50.0 |