added yaml deserializer and move all yamll stuff to one folder
This commit is contained in:
1 parent
a05c1b9dca
commit
2768975f9d
12 files changed
+114
-37
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from tempfile import mkdtemp
|
||||
from unittest import TestCase
|
||||
from src.config.AutomationLoader import (
|
||||
AutomationActionNode,
|
||||
@@ -10,8 +11,7 @@ from src.config.AutomationLoader import (
|
||||
_parse_actions,
|
||||
)
|
||||
from src.json_serializer import NOT_IMPLEMENTED_SV_MSG
|
||||
from src.config.HassSafeConstructor import (
|
||||
HassConfig,
|
||||
from src.yaml_serializer import (
|
||||
SecretValue,
|
||||
load_hass_config,
|
||||
IncludedYaml,
|
||||
@@ -20,6 +20,9 @@ from tests.utils import SAMPLE_HA_PATH
|
||||
|
||||
|
||||
class config_finder_tests(TestCase):
|
||||
def test_simple_made_up_config(self):
|
||||
pass
|
||||
|
||||
def test_find_sample_config(self):
|
||||
secrets, config = load_hass_config(SAMPLE_HA_PATH)
|
||||
self.assertIsInstance(config["template"], IncludedYaml)
|
||||
|
||||
Reference in new issue
Block a user