supervisor/hassio/api/network.py
Pascal Vizeli 76cead72e8 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
2017-04-26 11:15:56 +02:00

27 lines
636 B
Python

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