fixed linter

This commit is contained in:
ari committed 2022-08-25 10:17:39 -04:00
1 parent f4fe036480
commit 2f709b499a
1 file changed
+2 -2
+2 -2
View File
@@ -28,7 +28,7 @@ def extract_automation_paths(
for key, value in extract_automation_keys(hass_config):
logger.info(f"Loading automations from '{key}'")
found = True
if isinstance(value, IncludedYamlDir):
if isinstance(value, IncludedYamlDir): # type: ignore
yield key, str(value.path.relative_to(hass_config.root_path))
else:
logger.warning(f"found an invalid type in {key}!")
@@ -65,7 +65,7 @@ def extract_automation_keys(
raise NotImplementedError(
"No support for automations baked into configuration.yaml! Please extract these into a seperate file"
)
elif isinstance(value, IncludedYamlDir):
elif isinstance(value, IncludedYamlDir): # type: ignore
yield key, value
else:
logger.warning(f"found an invalid type in {key}!")