core: Replace legacy INI config system with Pydantic-based TOML configuration.
This is a huge configuration refactoring. The configuration system now uses Pydantic settings, with better validation, better support for environment variables and other goodies. The main config files now use TOML instead of INI, this allow for better handling of complex types, notably dict. Plugins, components and frontends can declare their config settings in a class which will be imported dynamically.
This commit is contained in:
parent
f3f40848b3
commit
6a7b7bc36a
1 changed files with 1392 additions and 1011 deletions
|
|
@ -68,8 +68,6 @@ class Template(object):
|
|||
command's template_data_mapping attribute will be used if it exists to convert
|
||||
data to a dict usable by the template.
|
||||
"""
|
||||
# media_dir is needed for the template
|
||||
self.host.media_dir = self.host.bridge.config_get("", "media_dir")
|
||||
cmd = self.host.command
|
||||
try:
|
||||
template_path = cmd.TEMPLATE
|
||||
|
|
|
|||
Loading…
Reference in a new issue