Add templates to scaffold device_trigger, device_condition, (#26871)

device_action
This commit is contained in:
Paulus Schoutsen 2019-09-27 12:54:17 -07:00 committed by GitHub
parent 80bc15e24b
commit 77654da341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 638 additions and 4 deletions

View file

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