fix(hassio): Resolve perpetual "connecting" and add unreachable state (#78)

* fix(service_sse): Fixed perpetual connecting from hung states request.

* fix(service_sse): Distinguish unreachable server from disconnected/auth
states.

* chore(plugin): Bumped version to 2.0.3
This commit is contained in:
Artur
2026-07-21 23:31:05 -04:00
committed by GitHub
parent 5012a7e2f4
commit ef512945ce
6 changed files with 61 additions and 35 deletions
+5
View File
@@ -39,6 +39,8 @@ local function getStatusText()
return noctalia.tr("widget.status_connecting")
elseif status == "disconnected" then
return noctalia.tr("widget.status_disconnected")
elseif status == "unreachable" then
return noctalia.tr("widget.status_unreachable")
elseif status == "auth_failed" then
return noctalia.tr("widget.status_auth_failed")
else
@@ -519,6 +521,9 @@ local function buildListBody(ids)
if status == "disconnected" then
return ui.label({ text = tr("disconnected_reconnecting"), color = "error" })
end
if status == "unreachable" then
return ui.label({ text = tr("unreachable"), color = "error" })
end
if #ids == 0 then
return ui.label({
text = status == "connected"