hass-taste-test 0.2.4 → 0.2.5

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/bin.js CHANGED
File without changes
package/lib/index.js CHANGED
@@ -186,7 +186,7 @@ class HomeAssistant {
186
186
  const installed = await this.hassVersion();
187
187
  if (!installed || installed !== this.cache.latestHass) {
188
188
  await exec(this.path_pip(), ['install', '--upgrade', 'wheel']);
189
- await exec(this.path_pip(), ['install', '--upgrade', 'mutagen', 'homeassistant']);
189
+ await exec(this.path_pip(), ['install', '--upgrade', 'homeassistant']);
190
190
  }
191
191
  }
192
192
  async readCache() {
@@ -249,7 +249,7 @@ class HomeAssistant {
249
249
  this.accessCode = login.auth_code;
250
250
  await this.launchWebsocket(this.accessCode);
251
251
  // Step through the onboarding pages
252
- await this.post('/api/onboarding/core_config', {}, true);
252
+ await this.post('/api/onboarding/core_config', undefined, true);
253
253
  await this.post('/api/onboarding/analytics', {}, true);
254
254
  const response = await this.post('/api/onboarding/integration', { redirect_uri: this.url + '/?auth_callback=1' }, true);
255
255
  this.accessCode = response.auth_code;
@@ -276,7 +276,7 @@ class HomeAssistant {
276
276
  'Content-Type': 'application/json',
277
277
  ...(authorize ? { Authorization: 'Bearer ' + this.accessToken } : undefined),
278
278
  },
279
- body: JSON.stringify({ client_id: this.clientId, ...body }),
279
+ body: body ? JSON.stringify({ client_id: this.clientId, ...body }) : undefined,
280
280
  });
281
281
  return (await response.json());
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hass-taste-test",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Integration testing for Home Assistant cards",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {