hass-taste-test 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -135,6 +135,7 @@ class HomeAssistant {
135
135
  /** Write configuration.yaml */
136
136
  async writeYAMLConfiguration(additionalConfig) {
137
137
  const config = [
138
+ 'default_config:',
138
139
  'frontend:',
139
140
  'http:',
140
141
  ` server_host: ${this.options.host}`,
@@ -253,7 +254,7 @@ class HomeAssistant {
253
254
  this.accessCode = login.auth_code;
254
255
  await this.launchWebsocket(this.accessCode);
255
256
  // Step through the onboarding pages
256
- await this.post('/api/onboarding/core_config', undefined, true);
257
+ await this.post('/api/onboarding/core_config', {}, true);
257
258
  await this.post('/api/onboarding/analytics', {}, true);
258
259
  const response = await this.post('/api/onboarding/integration', { redirect_uri: this.url + '/?auth_callback=1' }, true);
259
260
  this.accessCode = response.auth_code;
@@ -280,7 +281,7 @@ class HomeAssistant {
280
281
  'Content-Type': 'application/json',
281
282
  ...(authorize ? { Authorization: 'Bearer ' + this.accessToken } : undefined),
282
283
  },
283
- body: body ? JSON.stringify({ client_id: this.clientId, ...body }) : undefined,
284
+ body: JSON.stringify({ client_id: this.clientId, ...body }),
284
285
  });
285
286
  return (await response.json());
286
287
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hass-taste-test",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Integration testing for Home Assistant cards",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {