mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix scaffold script (#68516)
This commit is contained in:
parent
c223397098
commit
34063836ba
@ -61,7 +61,7 @@ def main():
|
|||||||
if not args.template.startswith("config_flow"):
|
if not args.template.startswith("config_flow"):
|
||||||
if info.helper:
|
if info.helper:
|
||||||
template = "config_flow_helper"
|
template = "config_flow_helper"
|
||||||
if info.oauth2:
|
elif info.oauth2:
|
||||||
template = "config_flow_oauth2"
|
template = "config_flow_oauth2"
|
||||||
elif info.authentication or not info.discoverable:
|
elif info.authentication or not info.discoverable:
|
||||||
template = "config_flow"
|
template = "config_flow"
|
||||||
|
@ -22,6 +22,7 @@ class Info:
|
|||||||
authentication: str = attr.ib(default=None)
|
authentication: str = attr.ib(default=None)
|
||||||
discoverable: str = attr.ib(default=None)
|
discoverable: str = attr.ib(default=None)
|
||||||
oauth2: 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)
|
files_added: set[Path] = attr.ib(factory=set)
|
||||||
tests_added: set[Path] = attr.ib(factory=set)
|
tests_added: set[Path] = attr.ib(factory=set)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user