summaryrefslogtreecommitdiff
path: root/src/home/config/config.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-10 22:11:41 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-10 22:11:41 +0300
commit2631c58961c2f5ec90be560a8f5152fe27339a90 (patch)
tree8a893678f974c8b8a405972dbeca528cc31c33e7 /src/home/config/config.py
parent327a5298359027099631c3c9967b7585928cd367 (diff)
fix mqtt_node_util
Diffstat (limited to 'src/home/config/config.py')
-rw-r--r--src/home/config/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/home/config/config.py b/src/home/config/config.py
index dc00d2e..7344386 100644
--- a/src/home/config/config.py
+++ b/src/home/config/config.py
@@ -256,7 +256,10 @@ class Config:
no_config=False):
global app_config
- if not isinstance(name, str) and not isinstance(name, bool) and issubclass(name, AppConfigUnit) or name == AppConfigUnit:
+ if not no_config \
+ and not isinstance(name, str) \
+ and not isinstance(name, bool) \
+ and issubclass(name, AppConfigUnit) or name == AppConfigUnit:
self.app_name = name.NAME
self.app_config = name()
app_config = self.app_config