hass-taste-test 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -2
- package/package.json +15 -15
package/lib/index.js
CHANGED
|
@@ -321,7 +321,6 @@ class HomeAssistant {
|
|
|
321
321
|
auth,
|
|
322
322
|
createSocket: async () => (0, socket_1.createSocket)(auth, false),
|
|
323
323
|
});
|
|
324
|
-
console.log('VERSION IS', this.ws.haVersion);
|
|
325
324
|
this.entitiesCollection = (0, home_assistant_js_websocket_1.entitiesColl)(this.ws);
|
|
326
325
|
}
|
|
327
326
|
async addIntegration(name) {
|
|
@@ -389,7 +388,7 @@ class HomeAssistant {
|
|
|
389
388
|
async states() {
|
|
390
389
|
console.log(this.entitiesCollection.state);
|
|
391
390
|
// this.entitiesCollection = entitiesColl(this.ws);
|
|
392
|
-
|
|
391
|
+
await this.entitiesCollection.refresh();
|
|
393
392
|
return this.entitiesCollection.state;
|
|
394
393
|
}
|
|
395
394
|
/** Clean up connections and stop the HomeAssistant server */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hass-taste-test",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Integration testing for Home Assistant cards",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
"homepage": "https://github.com/rianadon/hass-taste-test#readme",
|
|
16
16
|
"license": "AGPL-3.0-or-later",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"home-assistant-js-websocket": "^8.0
|
|
19
|
-
"node-fetch": "^2.6.
|
|
18
|
+
"home-assistant-js-websocket": "^8.2.0",
|
|
19
|
+
"node-fetch": "^2.6.4",
|
|
20
20
|
"proper-lockfile": "^4.1.2",
|
|
21
|
-
"ws": "^8.
|
|
21
|
+
"ws": "^8.13.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/jest": "^29.
|
|
24
|
+
"@types/jest": "^29.5.3",
|
|
25
25
|
"@types/jest-image-snapshot": "^6.1.0",
|
|
26
|
-
"@types/node-fetch": "^2.6.
|
|
26
|
+
"@types/node-fetch": "^2.6.4",
|
|
27
27
|
"@types/proper-lockfile": "^4.1.2",
|
|
28
|
-
"@types/ws": "^8.5.
|
|
29
|
-
"ava": "^5.1
|
|
30
|
-
"husky": "^8.0.
|
|
31
|
-
"jest": "^29.
|
|
28
|
+
"@types/ws": "^8.5.5",
|
|
29
|
+
"ava": "^5.3.1",
|
|
30
|
+
"husky": "^8.0.3",
|
|
31
|
+
"jest": "^29.6.1",
|
|
32
32
|
"jest-image-snapshot": "^6.1.0",
|
|
33
|
-
"lint-staged": "^13.
|
|
34
|
-
"playwright": "^1.
|
|
35
|
-
"prettier": "^
|
|
36
|
-
"ts-jest": "^29.
|
|
33
|
+
"lint-staged": "^13.2.3",
|
|
34
|
+
"playwright": "^1.36.1",
|
|
35
|
+
"prettier": "^3.0.0",
|
|
36
|
+
"ts-jest": "^29.1.1",
|
|
37
37
|
"ts-node": "^10.9.1",
|
|
38
|
-
"typescript": "^
|
|
38
|
+
"typescript": "^5.1.6"
|
|
39
39
|
},
|
|
40
40
|
"prettier": {
|
|
41
41
|
"printWidth": 100,
|