more complexity in the test conf

This commit is contained in:
John Lancaster
2024-07-07 17:17:11 -05:00
parent 6904ac30d5
commit 3481ff7976
15 changed files with 733 additions and 30 deletions

View File

@@ -1,25 +1,8 @@
import logging
import logging.config
from pathlib import Path
from appdaemon.adapi import ADAPI
class HelloWorld(ADAPI):
def initialize(self):
self.log(f'Initialized app from {__file__}')
# logging.config.dictConfig(
# {
# 'version': 1,
# 'disable_existing_loggers': False,
# 'formatters': {'basic': {'style': '{', 'format': '{message}'}},
# 'handlers': {'rich': {'()': 'rich.logging.RichHandler'}},
# 'loggers': {
# 'AppDaemon._app_management': {
# 'level': 'DEBUG',
# 'propagate': False,
# 'handlers': ['rich'],
# }
# },
# }
# )
self.log(f'Initialized app from {Path(__file__).relative_to(self.AD.app_dir.parent)}')