Add templates to scaffold device_trigger, device_condition, (#26871)
device_action
This commit is contained in:
parent
80bc15e24b
commit
77654da341
9 changed files with 638 additions and 4 deletions
|
@ -29,5 +29,32 @@ Reproduce state code has been added to the {info.domain} integration:
|
|||
- {info.tests_dir / "test_reproduce_state.py"}
|
||||
|
||||
Please update the relevant items marked as TODO before submitting a pull request.
|
||||
"""
|
||||
)
|
||||
|
||||
elif template == "device_trigger":
|
||||
print(
|
||||
f"""
|
||||
Device trigger base has been added to the {info.domain} integration:
|
||||
- {info.integration_dir / "device_trigger.py"}
|
||||
- {info.tests_dir / "test_device_trigger.py"}
|
||||
"""
|
||||
)
|
||||
|
||||
elif template == "device_condition":
|
||||
print(
|
||||
f"""
|
||||
Device condition base has been added to the {info.domain} integration:
|
||||
- {info.integration_dir / "device_condition.py"}
|
||||
- {info.tests_dir / "test_device_condition.py"}
|
||||
"""
|
||||
)
|
||||
|
||||
elif template == "device_action":
|
||||
print(
|
||||
f"""
|
||||
Device action base has been added to the {info.domain} integration:
|
||||
- {info.integration_dir / "device_action.py"}
|
||||
- {info.tests_dir / "test_device_action.py"}
|
||||
"""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue