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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user