Skip to content

Commit 26bf5e9

Browse files
committed
feat(homey): Add --link parameter to dev script and update app.json
The dev script in packages/homey/package.json has been updated to include the --link ../api parameter, which links the @teslemetry/api package during development. Additionally, app.json in packages/homey was automatically updated by the Homey CLI to include new pairing and repair flows for OAuth2 login, add devices, and list devices for both 'powerwall' and 'vehicle' drivers.
1 parent aae52b5 commit 26bf5e9

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

packages/homey/app.json

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,26 @@
4343
"cloud"
4444
],
4545
"pair": [
46+
{
47+
"id": "login_oauth2",
48+
"template": "login_oauth2"
49+
},
4650
{
4751
"id": "list_devices",
48-
"template": "list_devices"
52+
"template": "list_devices",
53+
"navigation": {
54+
"next": "add_devices"
55+
}
56+
},
57+
{
58+
"id": "add_devices",
59+
"template": "add_devices"
60+
}
61+
],
62+
"repair": [
63+
{
64+
"id": "login_oauth2",
65+
"template": "login_oauth2"
4966
}
5067
],
5168
"id": "powerwall"
@@ -65,9 +82,26 @@
6582
"cloud"
6683
],
6784
"pair": [
85+
{
86+
"id": "login_oauth2",
87+
"template": "login_oauth2"
88+
},
6889
{
6990
"id": "list_devices",
70-
"template": "list_devices"
91+
"template": "list_devices",
92+
"navigation": {
93+
"next": "add_devices"
94+
}
95+
},
96+
{
97+
"id": "add_devices",
98+
"template": "add_devices"
99+
}
100+
],
101+
"repair": [
102+
{
103+
"id": "login_oauth2",
104+
"template": "login_oauth2"
71105
}
72106
],
73107
"id": "vehicle"

packages/homey/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tsc": "tsc",
99
"build": "tsc",
1010
"lint": "eslint --ext .js,.ts --ignore-path .gitignore .",
11-
"dev": "homey app run",
11+
"dev": "homey app run --link ../api",
1212
"validate": "homey app validate"
1313
},
1414
"dependencies": {

0 commit comments

Comments
 (0)