mirror of
https://github.com/home-assistant/core
synced 2024-09-06 10:29:55 +02:00
Add missing manifest object to the check (#37535)
This commit is contained in:
parent
711b8e10a3
commit
0fb73a6332
@ -23,22 +23,22 @@ def validate_integration(config: Config, integration: Integration):
|
|||||||
config_flow_file = integration.path / "config_flow.py"
|
config_flow_file = integration.path / "config_flow.py"
|
||||||
|
|
||||||
if not config_flow_file.is_file():
|
if not config_flow_file.is_file():
|
||||||
if integration.get("config_flow"):
|
if integration.manifest.get("config_flow"):
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"config_flow",
|
"config_flow",
|
||||||
"Config flows need to be defined in the file config_flow.py",
|
"Config flows need to be defined in the file config_flow.py",
|
||||||
)
|
)
|
||||||
if integration.get("homekit"):
|
if integration.manifest.get("homekit"):
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"config_flow",
|
"config_flow",
|
||||||
"HomeKit information in a manifest requires a config flow to exist",
|
"HomeKit information in a manifest requires a config flow to exist",
|
||||||
)
|
)
|
||||||
if integration.get("ssdp"):
|
if integration.manifest.get("ssdp"):
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"config_flow",
|
"config_flow",
|
||||||
"SSDP information in a manifest requires a config flow to exist",
|
"SSDP information in a manifest requires a config flow to exist",
|
||||||
)
|
)
|
||||||
if integration.get("zeroconf"):
|
if integration.manifest.get("zeroconf"):
|
||||||
integration.add_error(
|
integration.add_error(
|
||||||
"config_flow",
|
"config_flow",
|
||||||
"Zeroconf information in a manifest requires a config flow to exist",
|
"Zeroconf information in a manifest requires a config flow to exist",
|
||||||
|
Loading…
Reference in New Issue
Block a user