3 from __future__
import annotations
10 from .const
import DB_URL_RE
12 _LOGGER = logging.getLogger(__name__)
16 """Redact credentials from string data."""
19 return DB_URL_RE.sub(
"//****:****@", data)
23 """Return the db_url provided if not empty, otherwise return the recorder db_url."""
25 if db_url
and not db_url.isspace():
str redact_credentials(str|None data)
str resolve_db_url(HomeAssistant hass, str|None db_url)
Recorder get_instance(HomeAssistant hass)