summaryrefslogtreecommitdiff
path: root/include/py/homekit/database
diff options
context:
space:
mode:
Diffstat (limited to 'include/py/homekit/database')
-rw-r--r--include/py/homekit/database/_base.py2
-rw-r--r--include/py/homekit/database/sqlite.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/py/homekit/database/_base.py b/include/py/homekit/database/_base.py
index c01e62b..dcec9da 100644
--- a/include/py/homekit/database/_base.py
+++ b/include/py/homekit/database/_base.py
@@ -1,7 +1,7 @@
import os
-def get_data_root_directory(name: str) -> str:
+def get_data_root_directory() -> str:
return os.path.join(
os.environ['HOME'],
'.config',
diff --git a/include/py/homekit/database/sqlite.py b/include/py/homekit/database/sqlite.py
index 8b0c44c..1651a93 100644
--- a/include/py/homekit/database/sqlite.py
+++ b/include/py/homekit/database/sqlite.py
@@ -18,7 +18,7 @@ class SQLiteBase:
def __init__(self, name=None, path=None, check_same_thread=False):
if not path:
if not name:
- name = config.app_config['database_name']
+ name = config.app_name
database_path = _get_database_path(name)
else:
database_path = path