Add reproduce state template (#26866)
* Add reproduce state template * Handle invalid state
This commit is contained in:
parent
6fe5582c6a
commit
53e6b8ade6
5 changed files with 155 additions and 4 deletions
|
@ -18,5 +18,16 @@ https://developers.home-assistant.io/docs/en/creating_integration_file_structure
|
|||
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.
|
||||
"""
|
||||
)
|
||||
|
||||
elif template == "reproduce_state":
|
||||
print(
|
||||
f"""
|
||||
Reproduce state code has been added to the {info.domain} integration:
|
||||
- {info.integration_dir / "reproduce_state.py"}
|
||||
- {info.tests_dir / "test_reproduce_state.py"}
|
||||
|
||||
Please update the relevant items marked as TODO before submitting a pull request.
|
||||
"""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue