fixed linter
This commit is contained in:
1 parent
f4fe036480
commit
2f709b499a
1 file changed
+2
-2
@@ -28,7 +28,7 @@ def extract_automation_paths(
|
|||||||
for key, value in extract_automation_keys(hass_config):
|
for key, value in extract_automation_keys(hass_config):
|
||||||
logger.info(f"Loading automations from '{key}'")
|
logger.info(f"Loading automations from '{key}'")
|
||||||
found = True
|
found = True
|
||||||
if isinstance(value, IncludedYamlDir):
|
if isinstance(value, IncludedYamlDir): # type: ignore
|
||||||
yield key, str(value.path.relative_to(hass_config.root_path))
|
yield key, str(value.path.relative_to(hass_config.root_path))
|
||||||
else:
|
else:
|
||||||
logger.warning(f"found an invalid type in {key}!")
|
logger.warning(f"found an invalid type in {key}!")
|
||||||
@@ -65,7 +65,7 @@ def extract_automation_keys(
|
|||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
"No support for automations baked into configuration.yaml! Please extract these into a seperate file"
|
"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
|
yield key, value
|
||||||
else:
|
else:
|
||||||
logger.warning(f"found an invalid type in {key}!")
|
logger.warning(f"found an invalid type in {key}!")
|
||||||
|
|||||||
Reference in new issue
Block a user