Fix string type in ha-form-string (#4559)

This commit is contained in:
Bram Kragten
2020-01-22 15:28:54 +01:00
committed by GitHub
parent 5bfacb3bf0
commit 312f1df368
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -91,7 +91,6 @@ class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
.redirectUri="${this.redirectUri}" .redirectUri="${this.redirectUri}"
.oauth2State="${this.oauth2State}" .oauth2State="${this.oauth2State}"
.authProvider="${this._authProvider}" .authProvider="${this._authProvider}"
.step="{{step}}"
></ha-auth-flow> ></ha-auth-flow>
${inactiveProviders.length > 0 ${inactiveProviders.length > 0
+1 -1
View File
@@ -81,7 +81,7 @@ export class HaFormString extends LitElement implements HaFormElement {
}); });
} }
private _stringType() { private get _stringType() {
if (this.schema.format) { if (this.schema.format) {
if (["email", "url"].includes(this.schema.format)) { if (["email", "url"].includes(this.schema.format)) {
return this.schema.format; return this.schema.format;