A live bird collage card for your Home Assistant dashboard.
Update overview.php
ehpersonal380470cda32ddc
diff --git a/scripts/overview.php b/scripts/overview.phpindex d45d5882..cba8a9f9 100644--- a/scripts/overview.php+++ b/scripts/overview.php@@ -192,7 +192,7 @@ function loadDetectionIfNewExists(previous_detection_identifier=undefined) {const xhttp = new XMLHttpRequest();xhttp.onload = function() {// if there's a new detection that needs to be updated to the page- if(this.responseText.length > 0) {+ if(this.responseText.length > 0 && !this.responseText.includes("Database is busy.")) {document.getElementById("most_recent_detection").innerHTML = this.responseText;// only going to load left chart if there's a new detection