mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Fix scaffold script (#68516)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user