Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: we were always using the wiki image provider: make sure to actually load the config

frederikce716cd007b4
diff --git a/scripts/api.php b/scripts/api.php
index cfd8f741..22b85757 100644
--- a/scripts/api.php
+++ b/scripts/api.php
@@ -3,6 +3,7 @@
define('__ROOT__', dirname(dirname(__FILE__)));
require_once(__ROOT__ . '/scripts/common.php');
+$config = get_config();
$requestUri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$requestMethod = $_SERVER['REQUEST_METHOD'];