Add more system information from Supervisor (#35560)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-05-12 15:27:34 -07:00
1 parent 306f15723d
commit eddb5c6c3f
8 files changed
+148 -35

No files matched your search

+11 -3
View File
@@ -68,12 +68,20 @@ class HassIO:
return self.send_command("/supervisor/ping", method="get", timeout=15)
@_api_data
def get_homeassistant_info(self):
"""Return data for Home Assistant.
def get_info(self):
"""Return generic Supervisor information.
This method return a coroutine.
"""
return self.send_command("/homeassistant/info", method="get")
return self.send_command("/info", method="get")
@_api_data
def get_host_info(self):
"""Return data for Host.
This method return a coroutine.
"""
return self.send_command("/host/info", method="get")
@_api_data
def get_addon_info(self, addon):