mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Ask for IoT class during scaffold (#49647)
Co-authored-by: Milan Meulemans <milan.meulemans@live.be> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
@ -67,10 +67,10 @@ def _append(path: Path, text):
|
||||
path.write_text(path.read_text() + text)
|
||||
|
||||
|
||||
def _custom_tasks(template, info) -> None:
|
||||
def _custom_tasks(template, info: Info) -> None:
|
||||
"""Handle custom tasks for templates."""
|
||||
if template == "integration":
|
||||
changes = {"codeowners": [info.codeowner]}
|
||||
changes = {"codeowners": [info.codeowner], "iot_class": info.iot_class}
|
||||
|
||||
if info.requirement:
|
||||
changes["requirements"] = [info.requirement]
|
||||
|
Reference in New Issue
Block a user