diff --git a/setup.py b/setup.py index 4d8a608959..6556a0867f 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20190821.0", + version="20190822.0", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors", diff --git a/src/components/ha-textarea.js b/src/components/ha-textarea.js index 90c728935e..ef941a39ce 100644 --- a/src/components/ha-textarea.js +++ b/src/components/ha-textarea.js @@ -27,6 +27,7 @@ class HaTextarea extends PolymerElement { static get properties() { return { + name: String, label: String, value: { type: String, diff --git a/src/dialogs/config-flow/step-flow-form.ts b/src/dialogs/config-flow/step-flow-form.ts index e492125650..4eb73f5c02 100644 --- a/src/dialogs/config-flow/step-flow-form.ts +++ b/src/dialogs/config-flow/step-flow-form.ts @@ -43,17 +43,17 @@ class StepFlowForm extends LitElement { protected render(): TemplateResult | void { const step = this.step; + const stepData = this._stepDataProcessed; const allRequiredInfoFilledIn = - this._stepData === undefined + stepData === undefined ? // If no data filled in, just check that any field is required step.data_schema.find((field) => !field.optional) === undefined : // If data is filled in, make sure all required fields are - this._stepData && + stepData && step.data_schema.every( (field) => - field.optional || - !["", undefined].includes(this._stepData![field.name]) + field.optional || !["", undefined].includes(stepData![field.name]) ); return html` @@ -68,7 +68,7 @@ class StepFlowForm extends LitElement { : ""} ${this.flowConfig.renderShowFormStepDescription(this.hass, this.step)}