Log cast config fetch errors (#6197)

This commit is contained in:
Bram Kragten 2020-06-20 15:40:29 +02:00 committed by GitHub
parent 7a13242077
commit 497494620d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,8 @@ export class HcMain extends HassElement {
this._handleNewLovelaceConfig(lovelaceConfig)
);
} catch (err) {
// eslint-disable-next-line
console.log("Error fetching Lovelace configuration", err, msg);
// Generate a Lovelace config.
this._unsubLovelace = () => undefined;
await this._generateLovelaceConfig();

View File

@ -228,6 +228,7 @@ class HuiEntitiesCard extends LitElement implements LovelaceCard {
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
}
.card-header {
display: flex;