Fix scaffold script (#68516)
This commit is contained in:
parent
c223397098
commit
34063836ba
2 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,7 @@ def main():
|
|||
if not args.template.startswith("config_flow"):
|
||||
if info.helper:
|
||||
template = "config_flow_helper"
|
||||
if info.oauth2:
|
||||
elif info.oauth2:
|
||||
template = "config_flow_oauth2"
|
||||
elif info.authentication or not info.discoverable:
|
||||
template = "config_flow"
|
||||
|
|
|
@ -22,6 +22,7 @@ class Info:
|
|||
authentication: str = attr.ib(default=None)
|
||||
discoverable: str = attr.ib(default=None)
|
||||
oauth2: str = attr.ib(default=None)
|
||||
helper: str = attr.ib(default=None)
|
||||
|
||||
files_added: set[Path] = attr.ib(factory=set)
|
||||
tests_added: set[Path] = attr.ib(factory=set)
|
||||
|
|
Loading…
Add table
Reference in a new issue