mirror of
				https://github.com/home-assistant/supervisor.git
				synced 2025-11-03 16:09:42 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			27 lines
		
	
	
		
			636 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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
 |