diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-20 00:56:00 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-20 00:56:00 +0300 |
commit | 95ac1f0d6786d6f4331cfc8387ef816c1db24618 (patch) | |
tree | 67e9c963ae7686eb46c75699b31ccd5385bacf77 /include/py/homekit/database/__init__.py | |
parent | 952e41d59412f5aad5898d0bccb3af800d104f24 (diff) |
comletely delete old lws, rewrite vk_sms_checker on python
Diffstat (limited to 'include/py/homekit/database/__init__.py')
-rw-r--r-- | include/py/homekit/database/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/py/homekit/database/__init__.py b/include/py/homekit/database/__init__.py index b50cbce..c958959 100644 --- a/include/py/homekit/database/__init__.py +++ b/include/py/homekit/database/__init__.py @@ -6,6 +6,7 @@ __all__ = [ 'get_clickhouse', 'SimpleState', + 'MySQLHomeDatabase', 'SensorsDatabase', 'InverterDatabase', 'BotsDatabase' @@ -14,12 +15,13 @@ __all__ = [ def __getattr__(name: str): if name in __all__: - if name.endswith('Database'): - file = name[:-8].lower() - elif 'mysql' in name: + ln = name.lower() + if 'mysql' in ln: file = 'mysql' - elif 'clickhouse' in name: + elif 'clickhouse' in ln: file = 'clickhouse' + elif name.endswith('Database'): + file = name[:-8].lower() else: file = 'simple_state' |