1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Update API for hass api v2 (#14)

* Update API for hass api v2

* fix lint

* Refactory the old version of host_control

* cleanup

* Cleanup name inside addons/data

* Cleanup name inside addons/data p2

* Rename api list

* Fix path bug

* Fix wrong config set
This commit is contained in:
Pascal Vizeli
2017-04-26 11:15:56 +02:00
committed by GitHub
parent a0f17ffd1d
commit 76cead72e8
15 changed files with 185 additions and 169 deletions

View File

@@ -1,7 +1,7 @@
"""Init file for HassIO network rest api."""
import logging
from .util import api_process_hostcontroll
from .util import api_process_hostcontrol
_LOGGER = logging.getLogger(__name__)
@@ -9,18 +9,18 @@ _LOGGER = logging.getLogger(__name__)
class APINetwork(object):
"""Handle rest api for network functions."""
def __init__(self, config, loop, host_controll):
def __init__(self, config, loop, host_control):
"""Initialize network rest api part."""
self.config = config
self.loop = loop
self.host_controll = host_controll
self.host_control = host_control
@api_process_hostcontroll
@api_process_hostcontrol
def info(self, request):
"""Show network settings."""
pass
@api_process_hostcontroll
@api_process_hostcontrol
def options(self, request):
"""Edit network settings."""
pass