fix mqtt_node_util
This commit is contained in:
parent
327a529835
commit
2631c58961
@ -3,7 +3,6 @@ import logging
|
||||
import os
|
||||
import sys
|
||||
import inspect
|
||||
import zoneinfo
|
||||
|
||||
from home.config import config # do not remove this import!
|
||||
from datetime import datetime, timedelta
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user