{# plugins/homeassistant/templates/homeassistant/form.html — where Home Assistant is, what signing in gives Steward, and leaving for its sign-in page. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% block title %}Home Assistant connection — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Home Assistant", "/plugins/homeassistant/"), ("Connection", "")]) }}{% endblock %} {% block content %} {{ page_header("Home Assistant connection") }}
{{ error }}
{% endif %} {% if connection %}Signed in{% if connection.signed_in_at %} {{ connection.signed_in_at|ago }}{% endif %}{% if connection.signed_in_by %} by {{ connection.signed_in_by }}{% endif %}, as {{ "an administrator: Steward can install updates" if connection.can_install else "a user who isn't an administrator: Steward shows status only" }}.
{% endif %} {% if connection %}Steward stops reading Home Assistant, forgets its credential and ends the sign-in there.