added yaml deserializer and move all yamll stuff to one folder

This commit is contained in:
Ari Sosnovsky committed 2021-11-11 11:51:58 -05:00
1 parent a05c1b9dca
commit 2768975f9d
12 files changed
+114 -37

No files matched your search

+5 -2
View File
@@ -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)