mirror of
				https://github.com/home-assistant/supervisor.git
				synced 2025-11-04 00:19:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			642 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Init file for HassIO network rest api."""
 | 
						|
import logging
 | 
						|
 | 
						|
from .util import api_process_hostcontroll
 | 
						|
 | 
						|
_LOGGER = logging.getLogger(__name__)
 | 
						|
 | 
						|
 | 
						|
class APINetwork(object):
 | 
						|
    """Handle rest api for network functions."""
 | 
						|
 | 
						|
    def __init__(self, config, loop, host_controll):
 | 
						|
        """Initialize network rest api part."""
 | 
						|
        self.config = config
 | 
						|
        self.loop = loop
 | 
						|
        self.host_controll = host_controll
 | 
						|
 | 
						|
    @api_process_hostcontroll
 | 
						|
    def info(self, request):
 | 
						|
        """Show network settings."""
 | 
						|
        pass
 | 
						|
 | 
						|
    @api_process_hostcontroll
 | 
						|
    def options(self, request):
 | 
						|
        """Edit network settings."""
 | 
						|
        pass
 |