platypush/plugins/esp/__init__.py
def close(self, device: Optional[str] = None, host: Optional[str] = None, port: int = 8266):
        """
        Close an active connection to a device.
        :param device: Configured device name. Either ``device`` or ``host`` and ``port`` must be provided.
        :param host: ESP host.
        :param port: ESP port.
        """
        device = self._get_device(device=device, host=host, port=port)
        host, port = [device['host'], device['port']]
        conn = self._connections.get((host, port))
        assert conn, 'No active connection found to {}:{}'.format(host, port)
        conn.close()
        del self._connections[(host, port)]

        Close an active connection to a device.
        :param device: Configured device name. Either ``device`` or ``host`` and ``port`` must be provided.
        :param host: ESP host.
        :param port: ESP port.
        
Close an active connection to a device.
Close an active connection to a device .
def close(self, device: Optional[str] = None, host: Optional[str] = None, port: int = 8266):
        device = self._get_device(device=device, host=host, port=port)
        host, port = [device['host'], device['port']]
        conn = self._connections.get((host, port))
        assert conn, 'No active connection found to {}:{}'.format(host, port)
        conn.close()
        del self._connections[(host, port)]
def close ( self , device : Optional [ str ] = None , host : Optional [ str ] = None , port : int = 8266 ) : device = self . _get_device ( device = device , host = host , port = port ) host , port = [ device [ 'host' ] , device [ 'port' ] ] conn = self . _connections . get ( ( host , port ) ) assert conn , 'No active connection found to {}:{}' . format ( host , port ) conn . close ( ) del self . _connections [ ( host , port ) ]
Close an active connection to a device.
Close an active connection to a device .
"""
        Close an active connection to a device.
        :param device: Configured device name. Either ``device`` or ``host`` and ``port`` must be provided.
        :param host: ESP host.
        :param port: ESP port.
        """
self
device
Optional[str]
Configured device name. Either ``device`` or ``host`` and ``port`` must be provided.
Configured device name . Either ` ` device ` ` or ` ` host ` ` and ` ` port ` ` must be provided .
host
Optional[str]
None
port
int
None