Add system health section for the Supervisor (#43074)

This commit is contained in:
Joakim Sørensen 2020-11-11 20:12:24 +01:00 committed by GitHub
parent 37bcfd1d2f
commit 403514ccb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 354 additions and 44 deletions

View file

@ -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.