Split scaffolding script (#26832)
* Add scaffolding split * Add second config flow method
This commit is contained in:
parent
2e4cc7e5a0
commit
5a4a3e17cc
16 changed files with 424 additions and 158 deletions
22
script/scaffold/docs.py
Normal file
22
script/scaffold/docs.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
"""Print links to relevant docs."""
|
||||
from .model import Info
|
||||
|
||||
|
||||
def print_relevant_docs(template: str, info: Info) -> None:
|
||||
"""Print relevant docs."""
|
||||
if template == "integration":
|
||||
print(
|
||||
f"""
|
||||
Your integration has been created at {info.integration_dir} . Next step is to fill in the blanks for the code marked with TODO.
|
||||
|
||||
For a breakdown of each file, check the developer documentation at:
|
||||
https://developers.home-assistant.io/docs/en/creating_integration_file_structure.html
|
||||
"""
|
||||
)
|
||||
|
||||
elif template == "config_flow":
|
||||
print(
|
||||
f"""
|
||||
The config flow has been added to the {info.domain} integration. Next step is to fill in the blanks for the code marked with TODO.
|
||||
"""
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue