Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sql.util Namespace Reference

Functions

str redact_credentials (str|None data)
 
str resolve_db_url (HomeAssistant hass, str|None db_url)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Utils for sql.

Function Documentation

◆ redact_credentials()

str homeassistant.components.sql.util.redact_credentials ( str | None  data)
Redact credentials from string data.

Definition at line 15 of file util.py.

◆ resolve_db_url()

str homeassistant.components.sql.util.resolve_db_url ( HomeAssistant  hass,
str | None  db_url 
)
Return the db_url provided if not empty, otherwise return the recorder db_url.

Definition at line 22 of file util.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.sql.util._LOGGER = logging.getLogger(__name__)
private

Definition at line 12 of file util.py.