Add more system information from Supervisor (#35560)

This commit is contained in:
Franck Nijhof 2020-05-13 00:27:34 +02:00 committed by GitHub
parent 306f15723d
commit eddb5c6c3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 148 additions and 35 deletions

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):