Add system health section for the Supervisor (#43074)
This commit is contained in:
parent
37bcfd1d2f
commit
403514ccb3
13 changed files with 354 additions and 44 deletions
|
@ -82,6 +82,14 @@ class HassIO:
|
|||
"""
|
||||
return self.send_command("/host/info", method="get")
|
||||
|
||||
@api_data
|
||||
def get_os_info(self):
|
||||
"""Return data for the OS.
|
||||
|
||||
This method return a coroutine.
|
||||
"""
|
||||
return self.send_command("/os/info", method="get")
|
||||
|
||||
@api_data
|
||||
def get_core_info(self):
|
||||
"""Return data for Home Asssistant Core.
|
||||
|
@ -90,6 +98,14 @@ class HassIO:
|
|||
"""
|
||||
return self.send_command("/core/info", method="get")
|
||||
|
||||
@api_data
|
||||
def get_supervisor_info(self):
|
||||
"""Return data for the Supervisor.
|
||||
|
||||
This method returns a coroutine.
|
||||
"""
|
||||
return self.send_command("/supervisor/info", method="get")
|
||||
|
||||
@api_data
|
||||
def get_addon_info(self, addon):
|
||||
"""Return data for a Add-on.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue