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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,6 @@ class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
.redirectUri="${this.redirectUri}"
.oauth2State="${this.oauth2State}"
.authProvider="${this._authProvider}"
.step="{{step}}"
></ha-auth-flow>
${inactiveProviders.length > 0

View File

@ -81,7 +81,7 @@ export class HaFormString extends LitElement implements HaFormElement {
});
}
private _stringType() {
private get _stringType() {
if (this.schema.format) {
if (["email", "url"].includes(this.schema.format)) {
return this.schema.format;