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
+3 -1
View File
@@ -34,6 +34,8 @@ local function getStatusText()
return tr("status_connecting")
elseif status == "disconnected" then
return tr("status_disconnected")
elseif status == "unreachable" then
return tr("status_unreachable")
elseif status == "auth_failed" then
return tr("status_auth_failed")
else
@@ -46,7 +48,7 @@ local function getStatusColor()
return "primary"
elseif status == "connecting" then
return "on_error"
elseif status == "disconnected" or status == "auth_failed" then
elseif status == "disconnected" or status == "unreachable" or status == "auth_failed" then
return "error"
else
return "on_surface_variant"