Add reproduce state template (#26866)

* Add reproduce state template

* Handle invalid state
This commit is contained in:
Paulus Schoutsen 2019-09-23 23:23:53 -07:00 committed by GitHub
parent 6fe5582c6a
commit 53e6b8ade6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 155 additions and 4 deletions

View file

@ -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.
"""
)