1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-30 08:02:02 +00:00

Avoid mutable default arguments

This commit is contained in:
Stefan Agner
2021-12-03 10:39:03 +00:00
committed by GitHub
parent ed5b9a9ada
commit eee53755dd

View File

@@ -897,8 +897,9 @@ def init_recorder_component(hass, add_config=None):
_LOGGER.info("In-memory recorder successfully started")
async def async_init_recorder_component(hass, config={}):
async def async_init_recorder_component(hass, add_config=None):
"""Initialize the recorder asynchronously."""
config = add_config or {}
if recorder.CONF_DB_URL not in config:
config[recorder.CONF_DB_URL] = "sqlite://"