Hass.io Add-on panel support for Ingress (#23185)

* Hass.io Add-on panel support for Ingress

* Revert part of discovery startup handling

* Add type

* Fix tests

* Add tests

* Fix lint

* Fix lint on test
This commit is contained in:
Pascal Vizeli authored and GitHub committed 2019-04-19 09:43:47 +02:00
1 parent 6a7bd19a5a
commit 3e443d253c
11 files changed
+298 -39

No files matched your search

@@ -81,6 +81,14 @@ class HassIO:
return self.send_command(
"/addons/{}/info".format(addon), method="get")
@_api_data
def get_ingress_panels(self):
"""Return data for Add-on ingress panels.
This method return a coroutine.
"""
return self.send_command("/ingress/panels", method="get")
@_api_bool
def restart_homeassistant(self):
"""Restart Home-Assistant container.