From 0fb73a63320c3d99d234aa1d4202ae1d972a5a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 6 Jul 2020 11:21:40 +0200 Subject: [PATCH] Add missing manifest object to the check (#37535) --- script/hassfest/config_flow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/hassfest/config_flow.py b/script/hassfest/config_flow.py index 1d69504ff8a..b51e3c43afb 100644 --- a/script/hassfest/config_flow.py +++ b/script/hassfest/config_flow.py @@ -23,22 +23,22 @@ def validate_integration(config: Config, integration: Integration): config_flow_file = integration.path / "config_flow.py" if not config_flow_file.is_file(): - if integration.get("config_flow"): + if integration.manifest.get("config_flow"): integration.add_error( "config_flow", "Config flows need to be defined in the file config_flow.py", ) - if integration.get("homekit"): + if integration.manifest.get("homekit"): integration.add_error( "config_flow", "HomeKit information in a manifest requires a config flow to exist", ) - if integration.get("ssdp"): + if integration.manifest.get("ssdp"): integration.add_error( "config_flow", "SSDP information in a manifest requires a config flow to exist", ) - if integration.get("zeroconf"): + if integration.manifest.get("zeroconf"): integration.add_error( "config_flow", "Zeroconf information in a manifest requires a config flow to exist",