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

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;