Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/4948485c50fb64b186f65fb7c1c875f553a389c4?style=unified&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Support using docker labels for HASS widget custom

pull/1545/head
shamoon 2 years ago
parent fc668aa9d0
commit 4948485c50

@ -71,6 +71,14 @@ export default async function homeassistantProxyHandler(req, res) {
let queries = defaultQueries;
if (!widget.fields && widget.custom) {
if (typeof widget.custom === 'string') {
try {
widget.custom = JSON.parse(widget.custom)
} catch (error) {
logger.debug("Error parsing HASS widget custom label: %s", JSON.stringify(error));
return res.status(400).json({ error: "Error parsing widget custom label" });
}
}
queries = widget.custom.slice(0, 4);
}

Loading…
Cancel
Save