Skip to content

Commit

Permalink
Merge pull request #56 from athombv/master
Browse files Browse the repository at this point in the history
mmip
  • Loading branch information
jeroenwienk committed May 13, 2024
2 parents bddd2d1 + 09d6d73 commit ba87285
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@
},
"3.5.0": {
"en": "New scripts now use the new Homey API"
},
"3.5.1": {
"en": "Update homey-api"
}
}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "com.athom.homeyscript",
"sdk": 3,
"version": "3.5.0",
"version": "3.5.1",
"compatibility": ">=5.0.0",
"name": {
"en": "HomeyScript"
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "com.athom.homeyscript",
"sdk": 3,
"version": "3.5.0",
"version": "3.5.1",
"compatibility": ">=5.0.0",
"name": {
"en": "HomeyScript"
Expand Down
15 changes: 15 additions & 0 deletions docs/tutorials/migrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,18 @@ The `uriObj` property has been deleted from a FlowToken as returned by [`Homey.f

## Step 5 - Drivers
The `uriObj` property has been deleted from a Driver as returned by [`Homey.drivers.getDrivers()`](https://athombv.github.io/node-homey-api/HomeyAPIV3Local.ManagerDrivers.html#getDrivers). The icon can now be found under `driver.ownerIconObj` and the color under `driver.color`.

## Step 6 - Apps
The following endpoints on the [`App`](https://athombv.github.io/node-homey-api/HomeyAPIV3Local.ManagerApps.App.html) class have been renamed.

- `app.apiGet(path)` -> `app.get({ path })`

- `app.apiPost(path, body)` -> `app.post({ path, body })`

- `app.apiPut(path, body)` -> `app.put({ path, body })`

- `app.apiDelete(path)` -> `app.delete({ path })`

## Step 7 - Managers

`Homey.zigBee` has been renamed to `Homey.zigbee`.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"homepage": "https://github.com/athombv/com.athom.homeyscript#readme",
"dependencies": {
"athom-api": "^3.9.2",
"homey-api": "^3.4.31",
"homey-api": "^3.4.33",
"lodash": "^4.17.21",
"node-fetch": "^2.7.0",
"uuid": "^8.3.2"
Expand All @@ -47,7 +47,7 @@
"jsdoc": "^3.6.11",
"jsdoc-ts-utils": "^5.0.0",
"prettier": "^3.2.5",
"serve": "^14.2.1",
"serve": "^14.2.3",
"watch": "^1.0.2"
}
}

0 comments on commit ba87285

Please sign in to comment.