Skip to content

Commit

Permalink
Support without any errorMessage attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Senart committed Dec 8, 2024
1 parent 49bfdca commit dd2b0b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/gazpar-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lovelace-gazpar-card",
"version": "1.3.11-alpha.2",
"version": "1.3.11-alpha.3",
"compatibleIntegrationVersion": "1.3.4",
"compatibleGazpar2MQTTVersion": "0.1.0",
"description": "GrDF Gazpar meter lovelace card for Home Assistant.",
Expand Down
2 changes: 1 addition & 1 deletion src/gazpar-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class GazparCard extends LitElement {
//----------------------------------
renderError(errorMsg) {
if (this.config.showError === true) {
if (errorMsg.length > 0){
if (errorMsg != null && errorMsg.length > 0){
return html
` <div class="section">
<div style="color: red">
Expand Down

0 comments on commit dd2b0b8

Please sign in to comment.