diff --git a/hassio_api/hassio/api/host.py b/hassio_api/hassio/api/host.py index 3c0431571..4b509e75d 100644 --- a/hassio_api/hassio/api/host.py +++ b/hassio_api/hassio/api/host.py @@ -24,12 +24,12 @@ class APIHost(object): @api_process_hostcontroll def reboot(self, request): """Reboot host.""" - return self.host_controll.reboot(): + return self.host_controll.reboot() @api_process_hostcontroll def shutdown(self, request): """Poweroff host.""" - return self.host_controll.shutdown(): + return self.host_controll.shutdown() @api_process_hostcontroll def network_info(self, request): diff --git a/hassio_api/hassio/api/util.py b/hassio_api/hassio/api/util.py index 7a1b5ec8c..8526437c4 100644 --- a/hassio_api/hassio/api/util.py +++ b/hassio_api/hassio/api/util.py @@ -11,6 +11,7 @@ _LOGGER = logging.getLogger(__name__) def api_process_hostcontroll(method): + """Wrap HostControll calls to rest api.""" async def wrap_hostcontroll(api, *args, **kwargs): """Return host information.""" if not api.host_controll.active: