From 2f709b499a16adc1cb9e2c0d532bfc87f4d70eac Mon Sep 17 00:00:00 2001 From: Ari Date: Thu, 25 Aug 2022 10:17:39 -0400 Subject: [PATCH] fixed linter --- api/src/automations/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/automations/loader.py b/api/src/automations/loader.py index b118102..905eca9 100644 --- a/api/src/automations/loader.py +++ b/api/src/automations/loader.py @@ -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}!")