async def create_http_connection(loop, protocol_factory, host, port=25105,
                                 auth=None):
    """Create an HTTP session used to connect to the Insteon Hub."""
    protocol = protocol_factory()
    transport = HttpTransport(loop, protocol, host, port, auth)
    _LOGGER.debug("create_http_connection Finished creating connection")
    return (transport, protocol)
async def create_http_connection ( loop , protocol_factory , host , port = 25105 , auth = None ) : protocol = protocol_factory ( ) transport = HttpTransport ( loop , protocol , host , port , auth ) _LOGGER . debug ( "create_http_connection Finished creating connection" ) return ( transport , protocol )
Create an HTTP session used to connect to the Insteon Hub.