mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Add reproduce state template (#26866)
* Add reproduce state template * Handle invalid state
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user