Skip to content

Commit

Permalink
Make status labels distinct from status values (#166)
Browse files Browse the repository at this point in the history
This is a pretty simple patch that arguably just works around
limitations in other tools, but having distinct labels and values allows
direct keyword search through the response to integrate into third-party
status pages like Kumo (my motivation for this patch).

Ideally the observer would expose a more machine-readable format too,
perhaps json when the header `Accepts: application/json` is set, but
this should still be useful either way and even in that json payload a
distinct key makes sense.
  • Loading branch information
chrisduerr authored Apr 9, 2024
1 parent 15abb88 commit 03bbad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/share/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Home Assistant observer</h1>
{{if .SupervisorConnected}}
<tr>
<td>
Supported:
Support:
</td>
<td class="{{if .Supported}}connected{{else if .SupervisorResponse}}disconnected{{end}}">
{{if .Supported}}Supported{{else if not .SupervisorResponse}}Processing...{{else}}Unsupported
Expand All @@ -33,7 +33,7 @@ <h1>Home Assistant observer</h1>
</tr>
<tr>
<td>
Healthy:
Health:
</td>
<td class="{{if .Healthy}}connected{{else if .SupervisorResponse}}disconnected{{end}}">
{{if .Healthy}}Healthy{{else if not .SupervisorResponse}}Processing...{{else}}Unhealthy
Expand Down

0 comments on commit 03bbad4

Please sign in to comment.