Add more system information from Supervisor (#35560)
This commit is contained in:
parent
306f15723d
commit
eddb5c6c3f
8 changed files with 148 additions and 35 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue